Complete useRef Summary in 2 minutes

Published: 16 November 2023
on channel: UI Engineering
493
42

React useRef hook summarized in 2 minutes. Covering API, real use cases and basic mistakes.
It should be enough to get you started!

⏱️ Timestamps:
00:00 - Introduction
00:24 - Persisting values in Refs
01:19 - Persisting DOM nodes in Refs

📖 Concepts:
How to use the useRef hook
What refs are used for
Common mistake when persisting values in refs
Why refs are useful if we already can persist variables in state
Accessing and setting ref's value
JavaScript DOM selectors vs Ref API
Passing refs to built-in HTML elements
Common error with ref forwarding
Passing refs to Custom Functional Components
Custom Ref Prop Pattern
forwardRef API

Icons: http://www.flaticon.com/
#reactjs


On this page of the site you can watch the video online Complete useRef Summary in 2 minutes with a duration of hours minute second in good quality, which was uploaded by the user UI Engineering 16 November 2023, share the link with friends and acquaintances, this video has already been watched 493 times on youtube and it was liked by 42 viewers. Enjoy your viewing!