Re:React's UseRef Deep Dive
by presentation on Thursday December 17, 2020 @06:15AM
(#25454520)
If you use a linter though you can just auto enforce all the rules and back to it being just fine. An extra setup step but tools like create react app bundle ESLint for you already so I don’t mind it.
I can see why some people prefer to use classes where the design is cleaner (even though you are more limited).
*: https://reactjs.org/docs/hooks-rules.html#:~:text=Only%20Cal....