Should I learn Redux or Zustand?
+1 for Zustand. Much quicker to get up and working. A good middle ground between Context and redux, project size wise at least.
More on reddit.comZustand Or Redux or Recoil
Zustand, Recoil, and Jotai are all good, but are all very basic in comparison to Redux Toolkit. They're great if you don't need much global state or if you just want a replacement for useContext + useState + useReducer. TBH they're all worth learning on some level, just to better understand the strengths and weaknesses of them. If you're doing small-scale projects or just rolling a proof of concept, you might never need more than they offer. Knowing the line where each tool becomes a bottleneck is something you can only really get by messing with each in turn - or at least reading the docs and exploring the demos.
It's worth noting they solve a different problem than Redux Toolkit - they fit nicely between "react-only tools" and "Everything I need or might eventually need in one place". Redux Toolkit is a no-brainer if you've got a lot of global state, need easy CRUD-style managed entities, consume external API data (especially if you need fine control over caching and refetching), have complex data processing/manipulating for selectors, or want easy access to monitoring/debugging state changes.
More on reddit.comZustand vs redux
Redux, React Query, Zustand, or the latter two?
There are types of state in react. All of these do different things.
Local app/component state: useState should do.
Global app state: Zustand or useContex(if it doesn't change too often).
Server state: React-query.
More on reddit.comWill using Redux or Zustand make my app faster automatically?
Is Redux still worth learning, or should I use Zustand instead?
Can freshers start with Zustand instead of Redux?
Videos
I’m currently using Redux (with Redux Toolkit) for state management in my React project. Lately, some dev friends have been recommending Zustand as a much simpler and more modern alternative.
Has anyone made the switch from Redux to Zustand? Was it worth it?
Hello r/reactjs,
I'm an hobby dev who wants to learn global state management (I've never needed it before because I've only worked on smaller projects with Context API) and I don't know which library to choose. Zustand seems much easier and I would prefer it over Redux, on the other hand Redux is used so often that it might be wiser to learn Redux instead.
Thanks in advance
+1 for Zustand. Much quicker to get up and working. A good middle ground between Context and redux, project size wise at least.
It's important to know redux if you intend to work as a Dev professionally cause many apps use it.
Personally I prefer zustand. It's simpler and gets the job done.
Remember, UI state is different than server state. So try not store data from the backend into a global statement lib. Use the proper libs for that, react-query and swr for ex. Once you split that, UI state will be so small that u may not even need a lib.