DEV Community

Discussion on: Using React.forwardRef() and an HOC on the same component

Collapse
 
hw_tech profile image
Harsh Wardhan

Awesome quick read about HOC and ref issue. I was going through React documentation on Forwarding refs in HOC but could not understand their example properly. But your example helped a lot.

Thank you Justin for sharing this along with the code sandbox links for both the plain React & in typescript.