Replies: 3 comments
-
I hope someone else can answer to those questions from their (user's) perspective. I will try it from my perspective later anyways. |
Beta Was this translation helpful? Give feedback.
-
TL;DR. If confused, use Zustand. https://zustand.docs.pmnd.rs/getting-started/comparison Zustand
Valtio
Jotai
Koota
@dai-shi Correct me if I'm wrong. 😓 |
Beta Was this translation helpful? Give feedback.
-
Yeah, we don't have a comprehensive docs to compare them. We could describe some characteristics to compare, but "when to use what" is something we don't answer (maybe except for koota) as we don't have definitive answer. I don't disagree that it would be nice to have such a comparison, and this is one attempt: https://react-community-tools-practices-cheatsheet.netlify.app/state-management/poimandres/
I originally thought about extending Zustand to add more features, but that didn't go well. It was partly due to technical reasons, but also non-technical ones. For example, one of the unavoidable features of Zustand is its small size. We generally prefer things to be small and dedicated. So, instead of providing one big library and letting users choose a few functionalities for their use cases, we provide multiple dedicated libraries and let users pick the ones they need. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
pmndrs
has multiple state management libraries: valtio, zustand, koota and jotai.All seem to be pretty much targeting the same functionality.
Q:
It is really confusing to see multiple packages of same functionality under one brand. It would be great if they all either get merged into one or others get marked as deprecated and one remains.
Beta Was this translation helpful? Give feedback.
All reactions