Комментарии:
Thanks for this video and good explanation.
I have a question, what if 'useFetch' can fetch both objects (one record) and arrays ? what will be the generic definition of the useFetch hook ?
Nice explanation, thanks ^_^
ОтветитьCanuck this is so freaking amazing, thank you so much for such a great explanation, I really appreciate it! Please keep doing educational videos with TS, you have the magic to explain.
ОтветитьThis is a really great example, thank you. One question though..why did you put comma after the 'T' in the Generic declaration of 'useFetch' in 'useFetch.ts' ?
Ответитьᵖʳᵒᵐᵒˢᵐ 😁
ОтветитьI just come here to listen to your voice. Also it's pronounced data
ОтветитьYes!
ОтветитьShould we return the data in JSON form or in array form? Example :-
(I also want to return the error if occured)
1) const { data, loading, error } = useFetch();
2) const [data, loading, error] = useFetch();
Is there a convention or good pattern on which to use?
Super clear, better than the other guys like Traversy
Ответитьcool stuff! great explanation
Ответить