News for hackers. Stuff that matters.
Re:I love React Hooks by pgrizzay on Wednesday February 20, 2019 @08:48PM (#19213854)
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

Re:I love React Hooks by lioeters on Wednesday February 20, 2019 @09:22PM (#19214007)
Interesting! Please do submit it on HN, I'd be curious to see what people think.