News for hackers. Stuff that matters.
Re:Show HN: SimpleR State – simple state management for React by sdfhbdf on Monday March 22, 2021 @11:53AM (#26542556)
Thanks for the answer.

> multiple times faster than when using Context

Oh cool! Do you have some benchmark results for that? Would be awesome to post them in the README if you can.

> simpler because you don't have to use Providers at all

I think the Provider pattern is part of the functional programming pattern with React, so while I do agree it might be harder to get used to but it underlines the no side-effects affecting the state of a given React components and its children.

At scale proper action, reducer pattern is helpful to manage a complicated state tree to still make it functional, easily testable and giving the same end result as a function of state.

There are no comments on this comment yet.