useRef hook in reactjs | Easiest way

Поделиться
HTML-код
  • Опубликовано: 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!