News for hackers. Stuff that matters.
Re:RFC: Intent to Ship React 18 by thatswrong0 on Thursday March 24, 2022 @08:41PM (#30797463)
I'm always confused by this comment about hooks. You can sus out the basics of how hooks work under the hood by just looking at their relatively simple rules that govern their usage. More from Dan Abramov: https://medium.com/@dan_abramov/making-sense-of-react-hooks-...

I think they are actually _more_ explicit than classes about how the state is stored. IMO `this` in class based components isn't as straightforward (e.g. https://overreacted.io/why-do-we-write-super-props/)

There are no comments on this comment yet.