Using React & Apollo
Example that demonstrates how to build a React & Apollo Client app that requests data from a site running WPGraphQL.
A blog post that details how to build this app from scratch is available here: https://www.wpgraphql.com/2019/01/10/build-an-app-using-react-and-the-graphql-plugin-for-wordpress-in-15mins/
- Clone down the examples repo.
npm installto install dependencies.
npm startto start the app locally.
- You can hit
ctrl+cat any time to stop the app.
- You can update the
/src/index.jsto control which WordPress site the app pulls its data from.