Hacker News new | ask | show | jobs
by pgrizzay 2672 days 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/

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

1 comments

Interesting! Please do submit it on HN, I'd be curious to see what people think.