The base TypeScript + GraphQL template for Create React App.
MIT License
To use this template, add --template typescript-graphql
when creating a new app.
For example:
npx create-react-app my-app --template typescript-graphql
# or
yarn create react-app my-app --template typescript-graphql
codegen.yml
and src/index.tsx
if your graphql endpoint is not http://localhost:4000
yarn gen
or npm run gen
For more information, please refer to: