Comparing Zustand, Jotai, and Valtio
In this chapter so far, we have compared the following pairs:
- Zustand and Redux in the Differences between Zustand and Redux section
- Jotai and Recoil in the Understanding when to use Jotai and Recoil section
- Valtio and MobX in the Using Valtio and MobX section
We compared these pairs because there are some similarities. In this section, we will compare Zustand, Jotai, and Valtio.
First of all, all three libraries are provided by the Poimandres GitHub organization (https://github.com/pmndrs). It's a developer collective providing many libraries. Three micro-state management libraries from a single GitHub organization may sound counter-intuitive, but they are in different styles. There is also a philosophy that is common in the three libraries: their small API surfaces. All three libraries try their best to provide small API surfaces and let developers compose the APIs as they want.
But then, what are the differences...