DEV Community


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

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:

More examples here:

Thread Thread
sajithpradeep profile image
Sajith Pradeep Author

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