Example app how to use Relay with Create React App
JavaScript
89
45 commits
updated Dec 9, 2022
This project was bootstrapped with Create React App.
This is an example how Relay since 1.7.0-rc.1 and Create React App with react-scripts since 2.0.0 can be used to build a Relay powered app without ejecting.
It uses an example Pokemon GraphQL server from https://graphql-pokemon.now.sh/ as the endpoint.
yarn install: install dependenciesyarn start: start the webserveryarn fetch-schema: download and write the schema to scripts/schema.graphql to be used for the compileryarn run compile-graphql: compile GraphQL artifacts after you made changes36 commits
9 commits
JavaScript
79.4%
HTML
16.1%
CSS
4.5%
Example app how to use Relay with Create React App
JavaScript
89
45 commits
updated Dec 9, 2022
This project was bootstrapped with Create React App.
This is an example how Relay since 1.7.0-rc.1 and Create React App with react-scripts since 2.0.0 can be used to build a Relay powered app without ejecting.
It uses an example Pokemon GraphQL server from https://graphql-pokemon.now.sh/ as the endpoint.
yarn install: install dependenciesyarn start: start the webserveryarn fetch-schema: download and write the schema to scripts/schema.graphql to be used for the compileryarn run compile-graphql: compile GraphQL artifacts after you made changes36 commits
9 commits
JavaScript
79.4%
HTML
16.1%
CSS
4.5%