DEV Community

loading...

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

Collapse
sajithpradeep profile image
Sajith Pradeep Author

Thanks for this comment. Very valuable info. I will definitely take a look at this and update this post with my learning!

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 Author

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