rsnext/examples/with-graphql-react/README.md
2019-11-27 11:40:58 -05:00

2.5 KiB

Next.js example with graphql-react

Deploy your own

Deploy the example using ZEIT Now:

Deploy with ZEIT Now

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
    

The idea behind the example

graphql-react is a GraphQL client for React using modern context and hooks APIs that is lightweight (< 2.5 KB size limited) but powerful; the first Relay and Apollo alternative with server side rendering.