Getting Started with Expo (React Native), TypeScript and GraphQL for Beginners

  Рет қаралды 2,060

Dan's React Native Lab

Dan's React Native Lab

Күн бұрын

Пікірлер: 7
@DanRNLab
@DanRNLab 7 ай бұрын
I forgot to include this in the video, but when you run codegen you can also generate the hooks with the query names. Some developers prefer this. I don't do this here because I prefer to wrap the hook anyway. If you would like to investigate further you can check out more here: the-guild.dev/graphql/codegen/plugins/typescript/typescript-react-apollo#withhooks
@ronnycoding
@ronnycoding 5 ай бұрын
Thank you for the video!!
@DanRNLab
@DanRNLab 5 ай бұрын
Happy you enjoyed it!!!
@r_alisher
@r_alisher 7 ай бұрын
why do you create custom react hooks? this library generates its own hooks or it is not the best practise ?
@DanRNLab
@DanRNLab 7 ай бұрын
In my case it is an ease of use thing. You don't always want to use the data as-is. I created helpers here in order to make the hooks easier to call from the component that consumes the data. If you generate the hooks you still have to pass in the same data as if you used useMutation, useQuery etc. You can see this in createNewTodo for example where I wrap createTodo so that the ID is passed in every time. Both ways are equally valid. Its more of a preference thing
@DanRNLab
@DanRNLab 7 ай бұрын
Thanks for adding this detail @r_alisher. I pinned a comment about it in case others don’t want to wrap their hooks and use the codegen ones.
@r_alisher
@r_alisher 7 ай бұрын
thank you for information@@DanRNLab
How to build a QR Code Scanner with Expo ( React Native )
13:28
Dan's React Native Lab
Рет қаралды 4,4 М.
I Wish I knew This About Typescript & React Sooner
14:06
CoderOne
Рет қаралды 38 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 16 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 87 МЛН
Expo Go vs Development Builds: Which should you use?
21:37
GraphQL Crash course | easy way
45:57
Hitesh Choudhary
Рет қаралды 115 М.
The Best React Code I Wrote (Code Review)
24:50
Cosden Solutions
Рет қаралды 25 М.
LiveView JS: The Comprehensive Guide
25:42
Code and Stuff
Рет қаралды 2,6 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 32 М.
Moving Off React Native
20:50
Theo - t3․gg
Рет қаралды 195 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 62 М.
Animated Line Charts with Expo ( React Native ), Victory Native, and Skia
16:18
Dan's React Native Lab
Рет қаралды 2,6 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 479 М.