5 ms·
FWIW, I wrote up an alternative proposal for hooks that was based on pure functional programming patterns. It's more complex but doesn't resort to the impure f
by pgrizzay 8y ago
FWIW, I wrote up an alternative proposal for hooks that was based on pure functional programming patterns.
It's more complex but doesn't resort to the impure functions like hooks which cause the same order/conditionals rules.
https://paulgray.net/an-alternative-design-for-hooks/ https://paulgray.net/an-alternative-design-for-hooks/
I think the next big framework will build on top of the declarative jsx-style rendering from react, while also providing pure abstractions of the side-effecting browser APIs
- lioeters 8y agoInteresting! Please do submit it on HN, I'd be curious to see what people think.