News for hackers. Stuff that matters.
Re:A Critique of React Hooks by luwes on Monday April 27, 2020 @12:34PM (#22997388)
Hooks are nothing new, it's just repackaging of

https://github.com/dominictarr/observable https://github.com/adamhaile/S

Mobx and Vue use the same technique for running computeds.

As does Solid and Sinuous, etc...

Re:A Critique of React Hooks by jiofih on Monday April 27, 2020 @01:01PM (#22997632)
Hooks are much more a reimplementation of the component lifecycle; receiving a change stream is only one of the use cases and has very little resemblance to observables, except that they trigger a re-render “automatically”.