reatom
Reatom - the ultimate state manager (by artalar)
monocle-ts
Functional optics: a (partial) porting of Scala monocle (by gcanti)
Our great sponsors
reatom | monocle-ts | |
---|---|---|
1 | 5 | |
811 | 966 | |
- | - | |
9.8 | 2.5 | |
5 days ago | 4 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reatom
Posts with mentions or reviews of reatom.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-29.
-
Why is it so difficult to modify a deeply nested state in React?
Nice one, really! https://github.com/artalar/reatom
monocle-ts
Posts with mentions or reviews of monocle-ts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-06.
-
Haskell Lens Tutorial by Exercises
For anyone - anyone who's faffed around with JavaScript's spread syntax when working with nested immutable data, anyway - struggling to understand the general concept or utility of lenses, I'd encourage looking into monocle-ts. The motivation [0] that kicks off the README instantly made me a believer, and TypeScript's idiosyncratic type system makes using the library remarkably natural; it fits right in without needing to deal with anything analogous to Template Haskell.
-
Is there a cleaner way to immutably update a deeply nested attribute? (I feel like this is not very clean)
You could have a look at the monocle-ts library. It was designed to deal with this kind of problem.
-
Simple Immutable Data w/ Spectacles 👓
spectacles-ts integrates seamlessly with the fp-ts ecosystem (it's built on top of the excellent monocle-ts library)
-
Why is it so difficult to modify a deeply nested state in React?
lenses help with this quite a bit, check out monocle-ts
What are some alternatives?
When comparing reatom and monocle-ts you can also consider the following projects:
optics-ts - Type-safe, ergonomic, polymorphic optics for TypeScript
zustand - 🐻 Bear necessities for state management in React
spectacles-ts - Practical Optics • Unfancy monocle-ts
valtio - 💊 Valtio makes proxy-state simple for React and Vanilla
jotai - 👻 Primitive and flexible state management for React
immutability-helper - mutate a copy of data without changing the original source
fp-ts-contrib - A community driven utility package for fp-ts
fp-ts - Functional programming in TypeScript
Dragonbinder - 1kb progressive state management library inspired by Vuex.