danilowoz / ts-gql-jsx

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

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

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


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%