DEV Community

Discussion on: Constructors in Functional Components With Hooks

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

You're spot-on about the useRef. In fact, in my useConstructor NPM package, I wrote it with useRef, rather than the useState approached illustrated in the article. There was another commenter on this thread that was gracious enough to point me in that direction.