ts-gql-jsx icon indicating copy to clipboard operation
ts-gql-jsx copied to clipboard

https://danilowoz.com/blog/generating-typescript-types-and-react-hooks-based-on-graphql-endpoint

Generating TypeScript types and React Hooks based on GraphQl endpoint

Automate the workflow of the generation of the types and custom React hooks, in React-Typescript applications with GraphQL Code Generator.

Check it out the full article here.

📦 my-project
 ┣ 📂 src
 ┃ ┣ 📂 pages
 ┃ ┃ ┗ index.tsx
 ┃ ┣ 📂 queries
 ┃ ┃ ┣ 📂 autogenerate
 ┃ ┃ ┗ my-query.gql
 ┃ ┗ apollo-client.ts
 ┣ codegen.yml
 ┗ package.json
Live coding

https://ts-gql-jsx.vercel.app/