rsnext/examples/with-graphql-react
Jayden Seric 0770470b40 Update the with-graphql-react example. (#7317)
- Update dependencies, especially graphql-react.
- Use the graphql-react v8.2.0 API.
- Use a /* GraphQL */ comment template string tag so text editors can syntax highlight, lint and format the GraphQL query.
2019-05-13 09:40:13 -05:00
..
pages Update the with-graphql-react example. (#7317) 2019-05-13 09:40:13 -05:00
package.json Update the with-graphql-react example. (#7317) 2019-05-13 09:40:13 -05:00
README.md Remove Deploy To Now buttons (#7126) 2019-04-24 10:53:58 +02:00

Next.js example with graphql-react

graphql-react is a lightweight but powerful GraphQL client for React; the first Relay and Apollo alternative with server side rendering.

See how it can be used in a Next.js app for GraphQL queries with server side rendering and client side data hydration:

Setup

  1. Download the example:

    curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-graphql-react
    
  2. Change directory to it:

    cd with-graphql-react
    
  3. Install it:

    npm install
    
  4. Run it:

    npm run dev