News for hackers. Stuff that matters.
Re:CSS Houdini by dragonwriter on Wednesday May 12, 2021 @02:30PM (#27133558)
> Hooks are class-declaration except your properties and methods are read FIFO in declaration order, rather than by a lookup table.

React Hooks are equivalent to React class components all of whose state management is done through setState, but with the difference you describe. Personally, I find hooks more natural than classes whose state management is done exclusively through setState, but that’s obviously a big YMMV.

There are no comments on this comment yet.