React - UseRef Hook

preview_player
Показать описание
Referencing a DOM element in React can be performed using the useRef Hook. In this tutorial we look at how to set this up using a Text Input box and adding a reference to it so that we can access the value property. One thing to be aware of here is the object returned by useRef has a 'current' property and that is where we should access the DOM element from.
Рекомендации по теме
Комментарии
Автор

I really like your content, very informative when learning React! Keep it up :)

roee
Автор

You are really doing a great job!! Thank me later -> 'promosm'!!!

alvinbryant