DEV Community

Discussion on: The Mysterious React hook: useRef()

Collapse
 
imkleats profile image
Ian Kleats

Had my useRef trial-by-fire back in June for the same reasons =D. It's handy for holding & interacting/controlling class instances that would otherwise persist across & perform their own DOM manipulations outside of the React component lifecycle.