React's useRef and how it works

Опубликовано: 19 Февраль 2026
на канале: Scott Batson
899
27

Ref's are really powerful in React, but they can be used for more than just updating DOM elements. They can be used for any state management that doesn't need a re-render. In this video, I show some examples of how to use them with timers, how to forward them to a child component and how to build a useful component API with useImperativeHandle.