News for hackers. Stuff that matters.
Re:Common mistakes writing React components with hooks by bulgr0z on Tuesday July 21, 2020 @10:36AM (#23907089)
> The first one just feels like a premature optimization

It is in a browser context, but less with React Native which relies way more on refs. It also never hurts (imho) to explain why refs exist and why/where to use them as they can easily be abused (and often are) by devs trying to replicate OOP patterns in React.

There are no comments on this comment yet.