News for hackers. Stuff that matters.
Re:A Critique of React Hooks Addendum by alexbanks on Thursday May 07, 2020 @11:49AM (#23104365)
This might be of benefit: https://blog.logrocket.com/use-hooks-and-context-not-react-a...

If Redux is a a vanilla-ish JS store and a Reactified access pattern, keeping the store but replacing the access pattern with React Contexts.

I am not a React expert.

Re:A Critique of React Hooks Addendum by RobertKerans on Thursday May 07, 2020 @07:14PM (#23109487)
This is replacing Redux with hand-rolled Redux. The pattern works, and is useful for very small apps, but get anything more complex where a state container is a useful thing and the tradeoff makes it pointless. Redux is extremely simple, very easy to test, and has excellent tooling. React-redux has necessary optimisations already written into it. And the boilerplate argument holds much less weight with hooks and redux toolkit.