O'Reilly logo

Pro React 16 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Adam Freeman 2019
Adam FreemanPro React 16https://doi.org/10.1007/978-1-4842-4451-7_25

25. Consuming GraphQL

Adam Freeman1 
(1)
London, UK
 

In this chapter—the last in this book—I show you the different ways that a GraphQL service can be consumed by a React application. I show you how to work directly with HTTP requests, how to integrate GraphQL with a data store, and how to use a dedicated GraphQL client.

Preparing for This Chapter

In this chapter, I continue using the productapp project from Chapter 24 and the GraphQL service it contains. To prepare for this chapter, the changes described in the following sections are required.

Adding Packages to the Project

Later in the chapter, I create components that receive GraphQL data directly, which requires ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required