All Projects → benawad → cra-template-typescript-graphql

benawad / cra-template-typescript-graphql

Licence: MIT License
No description, website, or topics provided.

Programming Languages

typescript
32286 projects
HTML
75241 projects

cra-template-typescript-graphql

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

Usage

  1. Put your queries/mutations in .graphql files anywhere in the src folder
  2. Edit the url in codegen.yml and src/index.tsx if your graphql endpoint is not http://localhost:4000
  3. Generate hooks by running yarn gen or npm run gen
  4. Use the generated hooks in your code

For more information, please refer to:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].