Learn React Hooks: useRef - Simply Explained!

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

In this video we will learn about React hooks, starting with useRef. This powerful React hook will allow you to store and manipulate values that are not needed for rendering. You will learn the difference between useRef and useState, when to use which, and how useRef works under the hood. We will use refs to handle values without triggering re-rendering, and we will also look at how refs can be used to manipulate HTML elements, as well as how they are used in 3rd party libraries.

In this new React world, hooks are here to stay, so it's best to learn them! In this tutorial I demonstrate the useRef React hook, and I explain it very simply and in a way that is easy to understand. Enjoy!
Рекомендации по теме
Комментарии
Автор

This is the reason why it's hard to understand about useRef. It's so confusing but you help me to make it easier to understand. GREAT JOB!!!

davidkurniawan
Автор

These guides are incredible. You made me understand clearly in 3 videos what my teacher couldnt in 3 days

Pernicuz
Автор

Great job! Your videos have been really clear and provide straight forward examples even explaining some of the gotchas of react

TheGrk
Автор

I was bit suspicious when you said we will not need another video for this but you were right. Really nice explanation, I finally understand the usage of refs.

psychobuddha
Автор

Thank you very much. It really is the last useRef video i would ever need.

SK-fqyz
Автор

I really like this description, it made sense. I am a new sub and opted to be notified of all your videos. You seems like this is a good example of the new gen of code videos.

haciendadad
Автор

Wow... I spent hours on it, when I used states and didn't understand why its not changing it immediately... So grateful !
Thank you man!

rustam
Автор

Thank you so much, this video helped me in my interview, specially the re-rendering part

cheiguerabdelwehab
Автор

Amazing, I enjoy watching your React lectures!

yxxdzsd
Автор

Finally, I understood useRef. You explain very well my friend. Thank you!

akash.deblanq
Автор

love your explanation. every thing is clear now about useRef, thanks!!

Arnav
Автор

Nice video and appreciate the time and effort that you put into developing quality content.

vishalupadhayay
Автор

Earned a subscribe! Thank you for explaining this super clearly and explicitly.

benihahitti
Автор

Great explanation! .Looking forward for more series

suhaibsaifan
Автор

This is the best useRef tutorial . Thansk !

zambidzhelov
Автор

Very clear and concise, thank you for the explanation.

altan
Автор

That's amazing explanation of useRef on whole YouTube. Thanks sir 👍

Engr.SharoonHoney
Автор

wow, simple and to the point
thanks a lot :)

a_maxed_out_handle_of__chars
Автор

Great video man, really clear explanations !

lhommeunknown
Автор

useRef is very complicated for me, you make it simple .Thank you a lot!

melikarazavi
visit shbcf.ru