Hacker News new | ask | show | jobs
by onion2k 2017 days ago
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.