News for hackers. Stuff that matters.
Re:React's UseRef Deep Dive by onion2k on Thursday December 17, 2020 @05:02AM (#25454172)
Junior engineers are also constantly tripped up by the subtleties of `useEffect` and `useState`.

They are, but they're also tripped up by the subtleties of class-based React components. The difference is that with hooks it's really obvious when they've tripped up (because React can tell, and warns you) while with classes it's really not obvious at all. This is one place where hooks are a clear win.

There are no comments on this comment yet.