state
valtio
state | valtio | |
---|---|---|
4 | 47 | |
55 | 8,468 | |
- | 1.7% | |
4.5 | 7.6 | |
about 1 year ago | 8 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.
state
-
Zustand = π₯
If you like to use something even simpler you can check my lib here https://github.com/bit-about/state. Itβs production ready and battle tested :)
-
React state management libraries in 2022
Iβve used almost all libs you mentioned, and then created my own https://github.com/bit-about/state . I use it on my newest projects and fills all my needs :3
-
Bit-about/event and bit-about/state are released Tiny React idiomatic libs
Hey guys! I've released complementary libraries BitAboutState and BitAboutEvent and I'd like to hear your feedback. I wanted to achieve the feeling that these libraries "should be built into React".
Key features:
100% Typescript with state types deduction
Efficient and hook-based
With extra static access to core functionality (without hook)
No centralized providers (decentralized states and events)
Tiny - max 2.5kB
These libraries force, in my opinion, the cleanest way to design code architecture in React projects.
The libraries are production-ready and this week I introduced them to fresh React-Native commercial projects in my company. We will see them on the battlefield :)
BitAboutEvent: https://github.com/bit-about/event
BitAboutState: https://github.com/bit-about/state
-
@bit-about/event and @bit-about/state are released π Tiny and 100% idiomatic libraries for type-safe state management with side-effects (like in Redux-like approaches)
BitAboutState: https://github.com/bit-about/state
valtio
- 5 Alternatives to Redux for React State Management
- How to properly structure a valtio shared state object?
-
Changelog #0023 β π οΈ Internal refactoring and improvements
We took inspiration from the many frameworks we worked with throughout our careers. And maybe surprisingly, Djangoβs ORM layer impacted our design choices and the API quite a bit. The resulting framework relies on Zod for schemas and validation and Valtio for React integration.
-
Is redux and thunks still used or are there other alternatives for it now?
Valtio is like simplified MobX
-
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.
https://github.com/pmndrs/valtio
-
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.
-
Notes on LiveView Components and JS interactions
Since we want the React component to react to an external change, using a state manager makes this easy. We will use Valtio here by example. For this library, change the esbuild config to --target=es2020 instead to remove some warnings (for example, the Zustand library is ok).
What are some alternatives?
thin-backend - π₯ Thin Backend is a Blazing Fast, Universal Web App Backend for Making Realtime Single Page Apps
redux - A JS library for predictable global state management
reactn - React, but with built-in global state management.
MobX - Simple, scalable state management.
react-native-use-persisted-state - πΎ Simple persisted state in react-native
zustand - π» Bear necessities for state management in React
ignite-bowser - Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
Immer - Create the next immutable state by mutating the current one
hookstate - The simple but very powerful and incredibly fast state management for React that is based on hooks
jotai - π» Primitive and flexible state management for React
constate - React Context + State
leva - π React-first components GUI