Skip to Main Content
React, 2nd Edition
book

React, 2nd Edition

by Nils Hartmann, Oliver Zeigermann
December 2019
Intermediate to advanced content levelIntermediate to advanced
402 pages
9h 14m
German
dpunkt
Content preview from React, 2nd Edition

12GraphQL mit dem Apollo Client für React

In diesem Kapitel wollen wir dir zeigen, wie du aus deiner React-Anwendung auf eine GraphQL1-API zugreifen kannst. GraphQL ist zwar im React-Umfeld entstanden und entsprechend populär, ist aber völlig unabhängig von React. Wenn du GraphQL noch nicht kennst, findest du im Anhang E eine kurze Einführung.

GraphQL-Clients für React

Um dir den Einsatz von GraphQL in deiner React-Anwendung zu zeigen, verwenden wir hier den Apollo React Client2, der sehr weit verbreitet ist. Andere populäre Bibliotheken für React-Frontends sind Relay3 (von Facebook entwickelt und verwendet) und urql4.

12.1Hands-on: ein GraphQL-Client

GraphQL-Server starten

In diesem Hands-on-Teil zeigen wir dir, wie du mit dem Apollo Client ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning React, 2nd Edition

Learning React, 2nd Edition

Alex Banks, Eve Porcello
React Key Concepts

React Key Concepts

Maximilian Schwarzmüller

Publisher Resources

ISBN: 9781098123857