Complete useRef Summary in 2 minutes

Publicado el: 16 noviembre 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea Complete useRef Summary in 2 minutes de Duración hora minuto segunda en buena calidad , que subió el usuario UI Engineering 16 noviembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 493 veces y le gustó 42 a los espectadores. Disfruta viendo!