Skip to content

danilowoz/ts-gql-jsx

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

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/