The Apollo Client gives you a simple way to query data from an external API in any application. With apollo-link-state
, you can take those same concepts you've already learned and interact with local state.
In this lesson, you will learn how to query and update state in your ApolloClient
with React using the ApolloProvider
and Query
components. First, we'll set up the application to read from state, then write a function that will increment that state.