useRef Basics

Veröffentlicht am: 24 Juni 2024
auf dem Kanal: unblockMe
21
1

In this video, we’ll discuss the basics of the useRef hook, a fairly powerful hook that lets us gain access to the underlying DOM nodes for React components.

Lucid Dreaming by | e s c p | https://escp-music.bandcamp.com
Music promoted by https://www.free-stock-music.com
Creative Commons / Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/...

You can find the code for this example here: https://github.com/XINX-Media/unblock...

➡️ Join our FREE Community on Discord:   / discord  

----------

🌐 About unblockME
unblockME is the best developer community where programmers come together to meet, learn, connect & grow. We provide educational content on frontend development & backend development technologies. If you’re looking to level up your programming career we share the best tips & tools to land a programming job you love.

----------

⌛Chapters

00:40 What is useRef?
02:29 Basic Example
03:35 Form Example
05:29 Reference to DOM Element
07:20 useRef won't re-render
09:21 Focus with useRef
11:09 Other DOM Properties
12:10 Other Use Cases
12:53 Summary

----------

Subscribe to the channel and turn on the notification bell to get notified when new weekly videos are released.


Auf dieser Seite können Sie das Online-Video useRef Basics mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer unblockMe 24 Juni 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 21 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!