Skip to content

Latest commit

 

History

History
 
 

with-graphql-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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