How to Fetch Data in React With A Custom useFetch Hook

preview_player
Показать описание
In this video I will show how to make a custom useFetch hook in react. The hook allows you to fetch data from an api both on render and lazily.

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
Рекомендации по теме
Комментарии
Автор

awesome work again - i am 52 years old - i am training to become a blockchain dev but now i am hooked on react which is still essential for blockchain work - i am inspired by guys like yourself - you guys are genius!!

xabb
Автор

Thank you very much for the video, after struggling to fetch some data from an API that I created, finally nailed it thanks to your

capitaoisma
Автор

You are one of the YouTubers who post real-life coding stuff that really helps! Thank you! :)

_boza
Автор

Thank you for teaching me react! I’ve been watching your videos for a few months now and have learned more here than I have in college.

blockanese
Автор

The best explanation of using a custom hook so far... Hats off man.

ashishkumawat
Автор

This is great. I recently switched from Angular to react and was wondering, how to seperate http from component as in angular we have services, here we have custom hooks to take care of it. Great tutorial bud😃

digender
Автор

Great vídeo again!
It would be interesting to bring some videos of React using Typescript too.

GabrielSouza-slvp
Автор

Wow! Thanks Pedro, by watching this video in just 16 min I was able to learn a lot about React & APIs

wilber
Автор

First video that i watch of this channel and already loved it, keep making the good work mate

JoaoPiovensan
Автор

Thank you bro. I knew about custom hooks. But i didn't use it. That was really cool. I will be using it on every project from now on.

bekzatmurat
Автор

Thankyou so much for the explanation. I have watched your video for the first time and you explained really well that I subscribed your channel immediately after the video finished.

nehanagda
Автор

Thanks so much man. I really needed to know how to use custom hooks in callback function and you have just made it easy for me. Thanks

michaelchinye
Автор

Excellent tutorial on fetching data using a custom react hook. Thanks, Pedro

{2022-02-14}, {2022-02-18}, {2023-08-06}

Pareshbpatel
Автор

Really good video my dude, didn't know you could return a function and call it like that. Very useful keep these react tricks coming. I would like to see some more real life examples of custom hooks so maybe you could make a custom hook series.

TheNamesJT
Автор

Dude, Thanks much, been searching for this for hours!

dane_x_music
Автор

Really great tutorial - thanks very much!

KC-hloj
Автор

That was a very useful video! I am doing my final project for my degree, which includes some data fetching from facebook and this will be very useful

Markdim
Автор

Thanks so much for the tutorials. They have been helping me alot. The crud tutorial with mysql helped me understand the connection between the client and server files. Thanks keep doing what you do.

brandonp
Автор

Good explained use api call with custom hooks. Thank you!

kakhabervk
Автор

Very good and concise explanation, thanks for that!

cassiosalvador