Build useFetch Custom React Hook to Fetch Data in 20 Minutes

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 34

  • @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.

  • @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

  • @codedusting
    @codedusting 11 месяцев назад

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

  • @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

  • @Pareshbpatel
    @Pareshbpatel 2 года назад

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

  • @SowmyaS-n6e
    @SowmyaS-n6e Год назад +1

    Thank you for this beautiful video

  • @gastonartazayanez3730
    @gastonartazayanez3730 3 года назад +1

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

  • @pateljay5351
    @pateljay5351 2 года назад

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

    • @evangel.constantine
      @evangel.constantine 2 года назад +1

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

  • @ShaikhAhmedReza786
    @ShaikhAhmedReza786 2 года назад

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

  • @sachinkotian2829
    @sachinkotian2829 2 года назад +1

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

  • @alexon2010
    @alexon2010 Год назад

    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?

  • @subhashgn1775
    @subhashgn1775 2 года назад

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

  • @rajeshmondal8392
    @rajeshmondal8392 2 года назад

    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.

  • @91navii
    @91navii 3 года назад

    kickass stuff...

  • @aryaadinulfadlan8998
    @aryaadinulfadlan8998 3 года назад

    thanks bro. SUBSCRIBED !

  • @fitnesspriority
    @fitnesspriority 3 года назад +1

    Please use arrow functions for defining func comp :)

  • @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.

  • @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

  • @bhagabatsahoo3112
    @bhagabatsahoo3112 2 года назад +1

    Very good

  • @kristijanblazevic7141
    @kristijanblazevic7141 3 года назад

    #likedbeforewatching 😄🔥

  • @ganeshk8410
    @ganeshk8410 3 года назад

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

  • @sureshbhaisaspara6752
    @sureshbhaisaspara6752 3 года назад

    Please bring MERN videos 🙏

  • @sonamohialdin3376
    @sonamohialdin3376 Год назад +1

    Awesome tutorial thank you