React Hooks Tutorial - 28 - useRef Hook Part 1

preview_player
Показать описание

📱 Follow Codevolution

useRef Hook in React
Рекомендации по теме
Комментарии
Автор

Man, i absolutely love the way you teach. Methodically explaining every step. You not only teach HOW to program... But how TO BE a programmer. Awesome videos sir!!!

aeronwolfe
Автор

I had a really hard time getting this concept when reading the React documentation. But watching this I understood it an a breeze! Thanks alot!

woutvandesompele
Автор

All of your videos are fantastic. You are so calm and speak slowly enough that I can follow everything without having to pause and rewind. Thanks so much for such great videos!!!

sidneykantor
Автор

This guy is boss in react. The way he explains can't be compared with anyone else

programmingforfun
Автор

I pray and wish - you, your parents, siblings, lifepartner, children, all to be well always. Thanks a ton to your parents, for raising such a gentle n intelligent humanbeing!

vigneshgvs
Автор

2 points worth mentioning:
1) autoFocus can be used, so the useCase loses it's meaning. Upon watching this video, one might think "ah... there's probably a better way to work around this, so i don't really need it".
2) The use case I ended up giving useRef was this: I had a chat box of height 800, and a chat bubble is of 200px height. After 4 messages, a scroll bar appeared, but visually? the display would be stuck on the first message, while messages keep piling up down at the chat box. I needed useRef, in order to be able the access the scrollTo attribute of the DOM element which was the chat box.

talkohavy
Автор

Nice to see that useRef is same as Angular elementRef. Great stuff !

FullStackMaster
Автор

For me its the best YouTube channel for learning code it's simply the best!!! thank you!!!

mrFighter
Автор

short & sweet ... Sir you got yourself a new follower

thirstypooch
Автор

Codeevaluation you are very good teacher. Awesome videos. You have made life easy...Big

sameeravhad
Автор

until now i watched your entier state ..series im on this vedio and i put a like for every vedio i watched thnks

zakidzz
Автор

This saved my life, i managed to make on click of a button1, the button2 to be clicked.

Djolesabijacica
Автор

Fail-safe answer to any interview question: "Well... that is just something that React does." :D epic

filipm
Автор

Thank you for this and very helpful. The example was simple and to the point. I do wonder, can we use useRef for multiple refs? Since the .current method will set the ref's current property to the corresponding DOM node, what if there are multiple refs, how does React know which node to apply it to?

MrRobeezy
Автор

3:40
in line 9 : inputRef.current.focus( ) .... what is focus( )...where its is defined and how are we able to use it

prateeksomani
Автор

Which extension you used for react components generate, you are using sort code like rsfc

anishbhut
Автор

Thanks a lot, very amazing and informative video and too the point 👍🙏🙏🙂

thecoderraj
Автор

great! now i need the fowordingRefs can you explaing that?

CarlosMansilha
Автор

Which plugin do you use to load snippets?

David-tetw
Автор

Inputref.current.focus() showing undefined error in console.
I am using latest stable version

Any one could help?

sbnsaravana