Thank you so much Caleb! I remember watching your old c++ vids and I really liked them, glad to see you here!
@paras53452 жыл бұрын
this video was clean srsly watched bunch on this topice but this is most clear
@tomasgilamoedo83012 жыл бұрын
Great explanation Pedro! keep on moving brobro, u reaching 50k soon! 🙌
@CuteCreeperYT3 жыл бұрын
Excellent work you've put up there Pedro. I mean this is just everything, if the basic is clear, complex logic can be implemented with much less efforts.
@rohmaabdulfattah25822 жыл бұрын
Very good.! Of all the videos I've watched, this explains in all in a simple and clear term
@spondoolie64502 жыл бұрын
Congrats on reaching your 10k subscriber goal (I think I was number 30-something thousand subscriber)
@k303k Жыл бұрын
Really appreciated for your efforts for making videos.Thanks a lot .
@cliffvbajo2 жыл бұрын
A good starting point to learn custom hooks! thank you
@hosseinnouri40652 жыл бұрын
thank u , i finally learn how to write custom hooks
@eduardolopes12702 жыл бұрын
Opa Pedro Cara, como que tu estudou inglês? Não lembro de ter ouvido uma pronuncia tão boa e uma fala tao fluida vindo de um BR. Abraços
@PedroTechnologies2 жыл бұрын
Boa Eduardo! Eu tive a sorte de poder estudar em uma escola internacional desde cedo, por isso tenho uma pronuncia melhor que o normal kkkkkk mas obrigado por ver os videos :) Abraços
@khandoor72283 жыл бұрын
what would you recommend either custom hook as described here, useSWR or React Query?
@PedroTechnologies3 жыл бұрын
I would recommend React-Query for most intermediate to hard projects. But if you are building something huge that will have thousands of lines of code, maybe creating ur custom fetcher is better cause you have more control over it!
@lokmanlife30233 жыл бұрын
Awesome as always. I got a question not related to this video. Its regarding the login system. Do you have a video on if the user login, will redirect to a profile page which show the logger info? if you dont, can you make a video on this topic? thank you..
@PedroTechnologies3 жыл бұрын
Thank you! I have a video on redirecting in React, however to display users information you just have to keep the users id and pass its id through a state or a prop.
@khandoor72283 жыл бұрын
Excellent work Pedro, I like the simple example followed by a real world example, good technique.
@PedroTechnologies3 жыл бұрын
Glad you liked it! I am trying out different styles of tutorials!
@danielrahmani70752 жыл бұрын
You are amazing dude . Keep going man❤️🤝
@subliminakeys16742 жыл бұрын
If you used that hook multiple times in your code wouldn't you need to destructure it to a different variable everytime? Example you have 'response' but if you copied and pasted that multiple times like you did at the end wouldn't it give an error? I'm assuming you would need to make the first usehook variable response then the second like response2 etc. Am I correct about that?
@abhaytiwari64113 жыл бұрын
I admire your work
@PedroTechnologies3 жыл бұрын
Thank you so much! This support motivates me a lot!
@JamesSmith-yj7wq2 жыл бұрын
Passing the request to useQuery is causing the axios to run the api request twice.. if you call the axios request from useQuery and only pass in the url to fetch, the api will only run once..
@kenanyildiz902 жыл бұрын
I think you need to check response before putting img src like `response?.image` request usually takes time.
@bonifacetom71162 жыл бұрын
Thanks so much bro for the wonderful explanation with simple code implementation. You just saved me
@vamshikrishnareddy762 жыл бұрын
I don't know it's just giving me a blank page. Without creating a custom hook it just wrote the same code as you and tried to run it.. it created a button when ever I click on it it doesn't change color and tried creating a custom hook now it just gives me a blank page not sure why...
@maxmaksum46733 жыл бұрын
great as always..thank you
@PedroTechnologies3 жыл бұрын
Thanks you for watching!
@Pareshbpatel2 жыл бұрын
Excellent Tutorial on React Custom Hooks. I found it very useFul ;-) - Thanks, Pedro {2022-02-14}, {2023-07-12}
@PedroTechnologies2 жыл бұрын
Glad it was helpful!
@MindOFAlfie2 жыл бұрын
Perfect tutorial!
@Lohitpant3 жыл бұрын
Thanks. Completed it and after seeing so many Indian dishes, I am hungry.
@PedroTechnologies3 жыл бұрын
hahaha enjoy lunch
@chinthana3 жыл бұрын
Great video.. Thanks..
@PedroTechnologies3 жыл бұрын
Glad you liked it!
@mahendranath25043 жыл бұрын
Thank you 👍🏼❤️🙏
@PedroTechnologies3 жыл бұрын
No problem 😊 Glad you liked it!
@RalfSchlindwein03 жыл бұрын
use custom hook starts 9:45
@chinthana3 жыл бұрын
Can U just extend this video.. Where we need to get two values.. {loading: true, data:{}} ====> before loading.. And after loading ==> {loading:false, data:{real data fetched }}... If possible can U make video in future? 🙂
@PedroTechnologies3 жыл бұрын
I can make one in the future!
@DeepakGupta-pz4fx3 жыл бұрын
Please make on video complete hook series
@PedroTechnologies3 жыл бұрын
Good Idea!
@DeepakGupta-pz4fx3 жыл бұрын
Waiting please complete hook series
@oz45493 жыл бұрын
how can I buy you coffee? Thank you for this.
@spondoolie64502 жыл бұрын
click on the 'Thanks' button
@teneshvignesan6227 Жыл бұрын
Not a big deal but if you ever making a tutorial, you don't have to speed rush. Try to be slower when explaining if not this is pointless in my opinion, although respect for you effort to help others.