DEV Community

Discussion on: Understanding the use of useRef hook & forwardRef in React

Collapse
 
psiho profile image
Mirko Vukušić • Edited

Just one example that I actually use more than refferencing elements... When you want to avoid running useEffect on mount of the component: stackoverflow.com/questions/594926...

More examples here: dmitripavlutin.com/react-useref-gu...

Thread Thread
 
sajithpradeep profile image
Sajith Pradeep

Thanks for this! I'm sure this will come in handy for me.