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

1 comments

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”.