Summary
In this chapter, you learned how to connect your GraphQL API to React. To do this, we used Apollo Client to manage the cache and the state of our components and to update React and the actual DOM of the browser. We looked at how to send queries and mutations against our server. We also covered how to implement pagination with React and Apollo, and how to use the Apollo Client Devtools.
After this chapter, you should be able to integrate the Apollo Client into your React application at any time. Furthermore, you should be able to make use of Apollo in every component of your application and be able to debug it.
The next chapter will cover how to write reusable React components. Up to this point, we have written the code, but we haven't thought about readability or good practices very much. We will address these issues in the next chapter.