6 ms·
Hooks are nothing new, it's just repackaging of https://github.com/dominictarr/observable https://github.com/dominictarr/observable https://github.com/adamhail
by luwes 6y ago
Hooks are nothing new, it's just repackaging of
https://github.com/dominictarr/observable https://github.com/dominictarr/observable
https://github.com/adamhaile/S https://github.com/adamhaile/S
Mobx and Vue use the same technique for running computeds.
As does Solid and Sinuous, etc...
- jiofih 6y agoHooks 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”.