News for hackers. Stuff that matters.
Re:Show HN: SimpleR State – simple state management for React by xixixao on Monday March 22, 2021 @11:12AM (#26541958)
It’s not clear how to define a new entity out of another one using a selector. So perhaps instead of/in addition to `x.use(foo)` you might want `x.select(foo).use()`.

Not sure if simpler but something I’d be missing/would feel inconsistent.

Re:Show HN: SimpleR State – simple state management for React by aenero on Monday March 22, 2021 @04:24PM (#26546411)
Hi. SimpleR State makes use of selectors without creating a new entity (unlike atoms in Recoil, for example). It uses the more classic paradigm used by popular libs like React Redux where you just use selectors to filter/transform the "received" state to the format required by the component, and not to "create" a derived state per se. I hope it makes sense.