Build useFetch Custom React Hook to Fetch Data in 20 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น •

  • @DipeshMalvia
    @DipeshMalvia  3 ปีที่แล้ว +13

    Guys, if the video is helpful to you or you learned something than please appreciate and hit the LIKE and SUBSCRIBE button and help this channel to GROW😉

  • @RanaAhmed-gr4ub
    @RanaAhmed-gr4ub 3 ปีที่แล้ว +3

    keep going brother.
    your react code so clean.

  • @gastonartazayanez3730
    @gastonartazayanez3730 3 ปีที่แล้ว +1

    Thanks for all your content
    It is really helpfull for me.

  • @codedusting
    @codedusting ปีที่แล้ว

    Great. I'll extend it a little bit more for handling graphql calls with InMemory cache.

  • @sonamohialdin3376
    @sonamohialdin3376 2 ปีที่แล้ว +1

    Awesome tutorial thank you

  • @arnabchakraborty3595
    @arnabchakraborty3595 3 ปีที่แล้ว +1

    sir mujhe english achee tara nahin ati .but apka video dekha kar mujhe achaa lagta hin maine react ka fundamental advanced sab apke video sahin sika hoo ..but kuch dino se apka video nahinn araha hain to thora video lekar aye koi naya project lekar react kar ...intezar main hoon apke video ka

  • @91navii
    @91navii 3 ปีที่แล้ว

    kickass stuff...

  • @ShaikhAhmedReza786
    @ShaikhAhmedReza786 3 ปีที่แล้ว

    Awesome. Really appreciate it. Got to know a new thing.

  • @abdullahclementabdulshekur6736
    @abdullahclementabdulshekur6736 2 ปีที่แล้ว +1

    Very good way of implement network request in ReactJs, could you make a video with post method. I like the level of abstraction

  • @kristijanblazevic7141
    @kristijanblazevic7141 3 ปีที่แล้ว

    #likedbeforewatching 😄🔥

  • @aryaadinulfadlan8998
    @aryaadinulfadlan8998 3 ปีที่แล้ว

    thanks bro. SUBSCRIBED !

  • @subhashgn1775
    @subhashgn1775 3 ปีที่แล้ว

    Very Well explained.👌
    Thank you🤝
    How to handle multiple API calls in single component?

  • @bhagabatsahoo3112
    @bhagabatsahoo3112 2 ปีที่แล้ว +1

    Very good

  • @fitnesspriority
    @fitnesspriority 3 ปีที่แล้ว +1

    Please use arrow functions for defining func comp :)

  • @Pareshbpatel
    @Pareshbpatel 2 ปีที่แล้ว

    Nice illustration of creating a custom hook to fetch data. Thanks, Dipesh
    {2022-10-14}

  • @pateljay5351
    @pateljay5351 3 ปีที่แล้ว

    Hi Dipesh, please tell me which one is better for state management
    1) context api
    2) redux
    3) recoil

    • @evangel.constantine
      @evangel.constantine 3 ปีที่แล้ว +1

      It depends! For simple state management, context and recoil are suitable. For more complex state management go with Redux or Redux toolkit

  • @alexon2010
    @alexon2010 ปีที่แล้ว +1

    I've seen several videos about api hooks, the problem is that I don't want to load when starting the screen, in the example when starting the app it triggers the useFetch, I want to do this when I click on the button, onClick, I can't do it?

  • @sachinkotian2829
    @sachinkotian2829 2 ปีที่แล้ว +1

    So if we have custom hooks then why to use high order component?

  • @Olatee
    @Olatee 3 ปีที่แล้ว

    This is a good video. Unfortunately the part where it's suppose to display an error if there's a problem with the request doesn't work. I changed the error object from null to Boolean to make it work. I don't know if it's the best option.

    • @clikhamitsolutions
      @clikhamitsolutions 3 ปีที่แล้ว

      yes, go the same issue as well. and it doesn't work with POST only works with GET

  • @mariusgardelli4262
    @mariusgardelli4262 2 ปีที่แล้ว

    I really like combining useReducer and useEffect when I need to fetch data, but using the same code over and over again was getting way too repetitive.
    Sadly, for some reason this doesn't work with the tmdb api.
    I can't access my data from useFetch in the App component, all I get is an empty array.
    Weirdly enough, the console.log(payload) from useFetch displays the data.

  • @ganeshk8410
    @ganeshk8410 3 ปีที่แล้ว

    Hi bro , Please post react and redux testing stuffs like jest, React testing lib.

  • @sureshbhaisaspara6752
    @sureshbhaisaspara6752 3 ปีที่แล้ว

    Please bring MERN videos 🙏

  • @rajeshmondal8392
    @rajeshmondal8392 3 ปีที่แล้ว

    Hello sir, I have a frontend built with React and a backend built with Node JS and Express. I want to hosting the site with cPanel. How can I do this? Please help me sir.

  • @SowmyaS-n6e
    @SowmyaS-n6e ปีที่แล้ว +1

    Thank you for this beautiful video