Blog, COLDSURF

zustand vs jotai (in my opinion)

Zustand

  • It is easy to manage each store.
  • It can be separated into manageable sizes, making it easy for people to manage and allowing for good abstraction.

Jotai

  • It starts with atoms, making it easy to manage raw values (numbers, strings, etc.) and primitive types.
  • It provides useful utilities, such as atomWithStorage, making it easy to use.
My preference is Zustand + React Query. In terms of user experience (DX), Zustand is more manageable for people.
Here’s a great video to check out:
Video preview
← Go home