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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You're spot-on about the
useRef
. In fact, in myuseConstructor
NPM package, I wrote it withuseRef
, rather than theuseState
approached illustrated in the article. There was another commenter on this thread that was gracious enough to point me in that direction.