reatom
valtio
Our great sponsors
reatom | valtio | |
---|---|---|
1 | 43 | |
811 | 6,596 | |
- | 5.3% | |
9.8 | 7.7 | |
5 days ago | 9 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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
-
Why is it so difficult to modify a deeply nested state in React?
Nice one, really! https://github.com/artalar/reatom
valtio
-
Why is building a UI in Rust so hard?
Even simpler than Zustand are state-atom libraries like jotai or recoil, or proxy based ones like valtio. Here's some discussion about the differences.
-
How to implement state management inside a simple JavaScript app
There is a package developed around this proxy concept called Valtio which is available for JavaScript, React, and so on... feel free to check and star it on Github.
-
What is being used right now for ioc/state-managment?
I'm switching from redux-saga to valtio (https://github.com/pmndrs/valtio) for now. It's simple and easy to use, everything's great so far.
-
Ask HN: What is your favorite front end state management solution?
I like valtio, works w/ React or just js. Has subscribe, derive, and more.
-
Explanation on how Redux or React Context could help and picking the best option
Jotai and Valtio are both also really good. Recently looked at Nanostore as well and has some similarity to Jotai and Recoil.
-
No-build TODO app using HTM + Preact
The state can be manipulated outside the React/Preact lifecycle too using vanilla JS. Persisting the app state to localStorage is also trivial.
-
React state management libraries in 2022
Have you looked at Valtio at all? Same author as zustand.
-
[Tutorial] Building a realtime multiplayer game using React & Conflict-free Replicated Data Types (CRDT) of Yjs.
If you want to use Yjs in your app, I highly suggest you use Valtio for state management, which has support for Yjs synchronization. Or if you want to use just Yjs for state, there is immer-yjs that gives you mutable semantics over immutable one of Yjs.
- I wrote a very small state manager (Vssm) in pure Javascript.
-
Solid.js feels like what I always wanted React to be
"UI state knows what its dependencies are automatically and only updates when they change" - you should check out [valtio](https://github.com/pmndrs/valtio).
What are some alternatives?
redux - Predictable state container for JavaScript apps
MobX - Simple, scalable state management.
zustand - 🐻 Bear necessities for state management in React
jotai - 👻 Primitive and flexible state management for React
Immer - Create the next immutable state by mutating the current one
leva - 🌋 React-first components GUI
Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
rtk-query - Data fetching and caching addon for Redux Toolkit
solid-start - SolidStart, the Solid app framework
react-redux - Official React bindings for Redux
will-this-react-global-state-work-in-concurrent-mode - Test tearing and branching in React concurrent rendering
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development