useRef hook in reactjs | Easiest way

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 209

  • @mazharulislam214
    @mazharulislam214 3 роки тому +36

    after seeing so many focus based tutorial finally this was the one that helped me understand the concept clearly. Thank you very much to you.

    • @arulprasad4786
      @arulprasad4786 3 роки тому +1

      Yea...This one made lot more sense..

    • @iamsanish10
      @iamsanish10 5 місяців тому +1

      Yes, its 2024 and many youtuber are still giving example based on focus 😂😂

  • @ujjawal.pandey
    @ujjawal.pandey 3 роки тому +13

    Literally cracked me up when you talked about that focus example.

  • @danielakoyleek3757
    @danielakoyleek3757 Рік тому +3

    Finally i can get my head around this confusing hook. First time watching your channel but really loved the explanation. Many many thanks to you.

  • @alkhamistic
    @alkhamistic 3 роки тому

    I really really appreciate the fact you didn't do the reused 'focus' tutorials everyone copied off each other. Much appreciated.

  • @NoOne-zu5qm
    @NoOne-zu5qm 3 роки тому +4

    I know sir you won't read this comment but Thank you so much sir I have completed your mern course and that gave me so much confidence in creating React and other full stack web applications. Again thank you sir from the bottom of my heart.

  • @samadritsarkar2
    @samadritsarkar2 3 роки тому +4

    I was struggling with ReactJs for the last few days. Thanks for the last 2 videos. You are awesome 💯

  • @phunguyeninh5707
    @phunguyeninh5707 2 роки тому

    I really confuse when see my colleague use useRef in their code, but I got the whole ideal when watch this video. Thanks Hitesh so much

  • @chandrakantshinde6
    @chandrakantshinde6 3 роки тому +6

    you know what i have never build a production ready app or any project yet but still i enjoy these videos and interestingly i'm getting almost everything what he is talking, making improvement in something is always exciting and fun. please make such great videos

  • @prithvimd9091
    @prithvimd9091 3 роки тому

    The simplest yet the clearest video on the internet!

  • @funshot4782
    @funshot4782 3 роки тому +2

    Now, i explain many react concepts very easily to anyone, all credit goes to you. Hitesh Sir ##MyDrodhachaarya🙏🙏

  • @vaibhavsachdeva.2001
    @vaibhavsachdeva.2001 Рік тому +3

    You explain things so well and with patience. Thanks!

  • @theodiclick6847
    @theodiclick6847 3 роки тому +2

    This is the best and simplest way that I find for this hook
    Thank you so much, sir.

  • @AbhisekMaitiOfficial
    @AbhisekMaitiOfficial Рік тому +1

    Better than 500 rupee udemy course, love you sir ji

  • @riversound8871
    @riversound8871 Рік тому +1

    Thanks Hitesh. Got more clear understating of useRef.

  • @qasimhafeez3402
    @qasimhafeez3402 3 роки тому +1

    Now I can say I know what is useRef, great work Sir

  • @aniketjha1729
    @aniketjha1729 3 роки тому

    one of the cleanest explanations one can find on the internet... ❣️❣️

  • @DONGNebab
    @DONGNebab Рік тому

    damn , my 20mins time of my life not waste for watching this tutorial man, thank you for explaining it. . new subscriber here.

  • @tsdineshjai8565
    @tsdineshjai8565 3 роки тому +1

    Wow ! Got to say this is one of the simplest and neat explanation a layman can understand.

  • @santana1971
    @santana1971 3 роки тому

    it took me a while to find a clear explanation of useRef. sure i will subscribe and follow you always mr.hitesh

  • @jasper5016
    @jasper5016 2 роки тому

    Thanks a lot Hitesh. I watched so many videos but this is the best explanation useRef can have. Thanks man!! I hope you make bigger videos and your subscribers will be very happy to watch them. :)

  • @saikiran-ng8bp
    @saikiran-ng8bp 3 роки тому

    Now I got a clearly understanding of where we can use useref. Thank u

  • @pemaangyagurung848
    @pemaangyagurung848 5 місяців тому

    after going through multiple videos and not understanding the concept, there comes hitesh sir ❤❤❤

  • @kalidass5968
    @kalidass5968 3 роки тому

    You are always unique. Different examples are giving better idea. Very useful. Thank you!

  • @VenkatGudavalli
    @VenkatGudavalli 3 роки тому +31

    Netlfix style Intro should be continued 😅

  • @tharunchowdary14
    @tharunchowdary14 3 роки тому +2

    Really loving all the content of your channel❤️

  • @ramganeshrg4125
    @ramganeshrg4125 3 роки тому

    The concept is explained clearly....... thankyou bro.

  • @arulprasad4786
    @arulprasad4786 3 роки тому

    You are my Guru going forward. Dheivamey.......

  • @kaszapnagypeter
    @kaszapnagypeter 3 роки тому

    Best explanation I have ever heard about useref hook!

  • @azizulhakimashik1154
    @azizulhakimashik1154 3 роки тому

    Best Tutorial. Watched from Bangladesh :)

  • @yashmengji6455
    @yashmengji6455 6 місяців тому +1

    Everytime you surprise me with your knowledge

  • @letshope5646
    @letshope5646 Рік тому

    thanks much Hitesh....you are having an incredible teaching ability.

  • @ashishkumarsaini7192
    @ashishkumarsaini7192 3 роки тому +2

    Thanks! I m just working on a project and need to implement useRef in that. Really helpful 😊

  • @justanotherfilcitizen2682
    @justanotherfilcitizen2682 2 роки тому

    This useRef confuses the sht out of me, after watching your vid, i now somehow understand it

  • @tomasgilamoedo8301
    @tomasgilamoedo8301 3 роки тому +1

    Excellent video bro! really appreciated

  • @brothersumitkumar
    @brothersumitkumar 3 роки тому

    Awesome explanation!!! Thank you so much @Hitesh Sir! for creating such a nice video for all viewers who are learning react like me. For me the best part of the video was the summarization of whole concept in last. I changed my video playback speed to 0.75 to understand what you just said. LOL!!!

  • @oncoding4520
    @oncoding4520 2 роки тому

    Hello :) Thank you for taking the time to explain it. It was such a great great video, but I just want to mention something that you already spoke in the beggining of the lesson. From a student perspective we usually go for longer or medium videos and 20min video its I think quite good. I refuse to see videos about 5min for each conxept. Coding is about conxepts and not syntax. You can steel code up and down but its more useful if you steel code but at least you understand the flow of the code and you can modify when you are asked. So thank you again for your work.

    • @oncoding4520
      @oncoding4520 2 роки тому

      I dont hit the subscribe sorry...

    • @oncoding4520
      @oncoding4520 2 роки тому

      I just make the notification ON for each video that you will upload

  • @vijayr.b.1050
    @vijayr.b.1050 3 роки тому

    Your video covers concept and interview qns too. Thanks a lot for this video sir!

  • @yashpanchal8464
    @yashpanchal8464 2 роки тому

    Thank you so much sir for this simple and useful video and I don't feel that video is longer.

  • @ak39gaming
    @ak39gaming 3 місяці тому

    was this video longer nah dude ! 20 minutes felt like 2 minutes. love your teaching style .

  • @bipinmsit7380
    @bipinmsit7380 3 роки тому

    Great explanation @Hitesh! You simply cracked useRef :)

  • @Lafsha
    @Lafsha Рік тому

    best explanation so far

  • @mindbodyps
    @mindbodyps 2 роки тому

    Best tutorial on useRef, no doubt

  • @alonaalona5967
    @alonaalona5967 3 роки тому

    Thank you very much :) Only your video gave me understanding of useRef

  • @sunflair-wa
    @sunflair-wa 2 роки тому

    You had me at, You have to understand it's history!

  • @AshishKumar-DIYCode
    @AshishKumar-DIYCode Рік тому

    This is awesome video it clears my all doubts.

  • @ameeraabed637
    @ameeraabed637 2 роки тому

    thank you so much Iam enjoying when I watch your explanation 😊😊😊

  • @amarmohammed5644
    @amarmohammed5644 2 роки тому

    Brilliant explanation, love the detailed answer

  • @ziaahmad8738
    @ziaahmad8738 3 роки тому

    Wao thank you very much, your videos are really helpful. I just started learning react and these videos are great help and I don't mind long videos at all 💓

  • @venkatchalam6385
    @venkatchalam6385 2 роки тому

    superb explanation hitesh sir,thank u so much

  • @NonBinary_Star
    @NonBinary_Star 2 роки тому

    Best description I've seen!

  • @jamalashraf7957
    @jamalashraf7957 2 роки тому

    you are AWESOME! BEST EXPLANATION EVER!

  • @Yash-ry5wj
    @Yash-ry5wj Рік тому +1

    Crystal Clear❤❤

  • @nevermindshort3
    @nevermindshort3 3 роки тому

    Thanks for the explanation in the beginning. It was really helpful

  • @InderjeetSingh-zm3sf
    @InderjeetSingh-zm3sf Рік тому

    Thanks sir made my mind more clear about useRef() hook

  • @rajeshbhattarai5934
    @rajeshbhattarai5934 3 роки тому +1

    clear and concise. Loved it

  • @easyfinanceexplained
    @easyfinanceexplained 3 роки тому

    Thank You sir for this beautiful concise explanation!!!!!

  • @usamanayab8381
    @usamanayab8381 2 роки тому

    you have cleared it amazingly! 👏

  • @ezio-v12
    @ezio-v12 3 роки тому +1

    you are good at this

  • @niteshkushwaha9493
    @niteshkushwaha9493 Рік тому

    Concise and complete explanation

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 2 роки тому

    Thanks a lot. I now have a better understanding. Gotta say please Inculcate these philosophy part in courses too. I was disappointed by one of your course but your youtube videos seem to be more curated than courses

  • @cosanostraytc1030
    @cosanostraytc1030 2 роки тому

    Excellent tutorial man. Keep it up!!!

  • @ahmedmohned387
    @ahmedmohned387 2 роки тому

    Thank you sir for this wonderful tutorial.

  • @mayanksahu5172
    @mayanksahu5172 3 роки тому

    Thankyou for this type of clearlity ❤️

  • @RicheRichLive
    @RicheRichLive Рік тому

    THE best video i have even seen

  • @iafofkhadze4628
    @iafofkhadze4628 2 роки тому

    wow this is best video so far. really appreciate your help tho

  • @parasmaniseth7873
    @parasmaniseth7873 3 роки тому

    we getting into in-depth react ...nice...looking forward to the video on lifecycle component of react

  • @garvitvanshkataria
    @garvitvanshkataria 3 роки тому

    Great explanation and example

  • @muditrustagi3356
    @muditrustagi3356 3 роки тому +1

    18:20 did anyone notice the console log showed width as 400, although the code to change width was sequentially after logging statement, ideally i would have expected it to show as width:100. Can anyone tell me why did that happen?

    • @hi-yi7en
      @hi-yi7en 2 роки тому +1

      Because here we log the non- primitive value thats why....

  • @hapatworld
    @hapatworld 2 роки тому

    sir tagda explanation hain.

  • @amansarma417
    @amansarma417 3 роки тому

    I was just wondering on how to manipulate on dom elements wola! I just got my answer thank you sir.

  • @ishukhurana1779
    @ishukhurana1779 3 роки тому +2

    Completely different example used from all the other videos on youtube for useref!! Great Work. Just one ques: isn't changing the width of input box a re-render???

  • @ice12328
    @ice12328 Рік тому

    Excellent explanation .

  • @chandravardhan3725
    @chandravardhan3725 3 роки тому

    Sir, You are too much like my mom. You always sense it, what I want.

  • @ReshmaShaik-ug5oy
    @ReshmaShaik-ug5oy 11 місяців тому

    tq very much sir it was easy to understand

  • @madhuiitb-cse
    @madhuiitb-cse Рік тому

    Best video on useRef

  • @kamaleshpramanik7645
    @kamaleshpramanik7645 Місяць тому

    Thank you very much Hitesh Sir ..

  • @pavanshirguppi5261
    @pavanshirguppi5261 3 роки тому

    Good Hitesh. Keep it up.

  • @nabilkachar-k2n
    @nabilkachar-k2n Рік тому

    you explain the why of things and that what does give your channel its adventage upon others

  • @jdragon8184
    @jdragon8184 3 роки тому

    It's my first time learning anything from him and it's awesome
    Ps:subbed already but permanent now

  • @randomandrandomfacts
    @randomandrandomfacts 3 роки тому

    Really needed this video. Thank you.

  • @developerpranav
    @developerpranav 3 роки тому

    Such a great explanation! Thank you sir!

  • @narutokunn
    @narutokunn 3 роки тому

    Thanks for the clear explanation

  • @sehajdeepsingh7427
    @sehajdeepsingh7427 5 місяців тому

    Brilliantly explained !!

  • @amolshrivastava7786
    @amolshrivastava7786 3 роки тому +1

    This explanation was phenomenal. Can you explain in depth useEffect hook and all its cases?

  • @AtitManandhar
    @AtitManandhar 3 роки тому

    Thank you for the clear explanation.

  • @akashgite4865
    @akashgite4865 3 роки тому +2

    Sir, please make video on useMemo() and useCallback() hook

  • @temitopeasama912
    @temitopeasama912 2 роки тому

    This was lovely. Thank you!

  • @idrissben1613
    @idrissben1613 2 роки тому

    Thank you , it was very clever!

  • @RajveerSingh-yb6zq
    @RajveerSingh-yb6zq 3 роки тому +3

    Absolutely Beautiful :)

  • @harshavardhanteja6727
    @harshavardhanteja6727 3 роки тому +1

    As said in the Saturday live, thought yesterday would be live with telusko

  • @andyfer7716
    @andyfer7716 3 роки тому +2

    I'm confused. Useref is not supposed to render but clearly the input element is changing in width which means it was re-rendered. What am I missing?

    • @mayurkeswani2312
      @mayurkeswani2312 3 роки тому

      Re-rendering means re-loading of browser tab. If you use useState , with every change in state , your browser will re-load and all elements on that page will too re-reload.
      but in useRef , that element will only re-render not browser tab.

    • @andyfer7716
      @andyfer7716 3 роки тому

      @@mayurkeswani2312 I don't think that's right.

    • @fariduzzamaansari1656
      @fariduzzamaansari1656 3 роки тому

      When you are using useRef and do something like:
      inputRef.current.style.width = "400px"
      It means that you are manipulating the DOM manually, meaning, you are not causing a re-render in the React sense, although you may very well be causing a repaint or reflow. React handles all the DOM manipulations itself so that you don't have to, it handles when something should re-render through the 'state' and virtual DOM.

  • @chrisamuzie401
    @chrisamuzie401 3 роки тому

    Hello sir, assuming I want to add a value to an input Text by just clicking on element.. please how will I do that please?

  • @jeetsingh-sy5ij
    @jeetsingh-sy5ij 2 роки тому

    What does "Store the reference of an element" meains?

  • @ДенисКац-э1ь
    @ДенисКац-э1ь 3 роки тому

    but why input size changed on the screen if changing current value doesn't trigger rerender? i don't understand

  • @javascriptwar9525
    @javascriptwar9525 3 роки тому

    🙌❤great help always..

  • @nabinsaud4688
    @nabinsaud4688 3 роки тому

    We need more ... please make More

  • @sohamgodbole1587
    @sohamgodbole1587 3 роки тому

    Awesome sir. As always.please make Video on redux or redux toolkit with demo app like todo.If possible.

  • @sarthem
    @sarthem 3 роки тому

    Great video tutorial thanks a lot!

  • @pythusiast4701
    @pythusiast4701 2 роки тому

    Amazing teacher

  • @muhammad_abir
    @muhammad_abir 2 роки тому

    thanks a lot.... you made it easy
    please a video like this about redux.... what is the use case of redux!