10 - What is the useRef hook in React - When to Use useRef - useState vs useRef - Reference in React

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

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

  • @random2059
    @random2059 ปีที่แล้ว +6

    Bengali people have some connect to bengali , you explaoned very good more over that as i am bengali , i could connect with every single words of your 💕💕 Thank you

  • @spectacular5595
    @spectacular5595 8 หลายเดือนก่อน +5

    you made my day fully usable 😀 . i really appreciate your work .

    • @tapasadhikary
      @tapasadhikary  8 หลายเดือนก่อน +1

      Thanks a lot, glad it was helpful to you.

    • @spectacular5595
      @spectacular5595 8 หลายเดือนก่อน +2

      I was enjoying while studying with you. Thank you for being part of my success.

  • @neeraj-1923
    @neeraj-1923 ปีที่แล้ว +1

    I've seen a lot of videos on TH-cam + udemy but I got confused about the usage. I understand a little bit of the concept but after this video, it cleared my all doubts. Thanks a lot👍.

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

    very clear explanation. Best serios for react .

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

      Cool 👌…. Please let others know about the series ❤️🙏

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

    Got a good clarity between useeffect and useref nice information and explanation

  • @farukabdullamunshi8358
    @farukabdullamunshi8358 2 ปีที่แล้ว +3

    Great Tutorial about `useRef`.

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

      Thank you Faruk for watching and constant support ❤️

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

    Yes, I find this video useful. To persist information in the rendering processes we must use useRef which is totally decoupled from the rendering.

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

    Awesome explanation. Really useful for in-depth analysis for a lifetime and interviews!

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

    it is best Explanation sir.. please make video about react router about sir.

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

    Extremely informative! Thanks for the video.

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

    thanks sir..nice explanations...

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

      Tank you, and you are most welcome.

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

    Amazing video... Explaination is best

  • @gto433
    @gto433 11 หลายเดือนก่อน +2

    I request you to talk about concepts like immutability of react and functional programming vs oops in general

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

    Thank you

  • @21Moudud
    @21Moudud 10 หลายเดือนก่อน +2

    Just awesome boss

    • @tapasadhikary
      @tapasadhikary  10 หลายเดือนก่อน

      Thank you boss ❤️

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

    Loved it boss thank you

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

    great stuffs to learn and to understand better. could you please post some videos related to JEST for writing testcases!

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

    Amazing

  • @chromepos
    @chromepos 2 ปีที่แล้ว +3

    If you want to update data and cause a UI update, useState is your Hook. If you need some kind of data container throughout the component's lifecycle without causing render cycles on mutating your variable, then useRef is your solution.

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

    useful

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

    what is 'prev' inside setCount..? I understood the code but you didn't declared/initialized 'prev' anywhere so how were you able to use it? is it predefined?

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

      Here we pass a callback function to the setCounter() method gives us the previous value to use
      Yes it is predefined

  • @sanyamjain4777
    @sanyamjain4777 2 ปีที่แล้ว +3

    Is this course going to be in depth and if i take this will i become interview ready?? Please guide me i dont like udmy courses, is this gonna Equivalent to top udemy course

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

      So, three essential questions, Sanyam. Let me try answering them.
      - Yes, each of the videos of this series aims to touch the fundamentals, so it is in-depth, and it will continue to be that way. It is one of the reasons that most of the videos from this channel are a bit longer because knowledge sharing and grasping take time.
      - The videos from this series will make you confident about the subject(React). If you also attempt the Quizzes and Tasks I give the community channel, it will make you feel stronger about it. So, I believe you will be able to face interview questions more confidently.
      - I do not call this series a course yet. It is a series of videos to fundamentally make you a strong React developer. That's the motto. It is no way to replace and compete with any existing or upcoming courses. My suggestion is, "time is precious". So take the one you feel good for you.
      Happy Learning.

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

    Where can I see about the UseContext Hook?

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

      You will get it after the useCallback in about 7 data from now

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

      It's available now.

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

      @@tapasadhikary Thank you :)

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

    the reference value is persisted b/w the renders