Blog - Where you see my sounds 🎵

Blog - Filtered by category: React

Jotai (状態) React State Management(與 Zustand 微比較)

簡潔的 Jotai API vs. 全能的 Zustand 在 Jotai docs 就有簡單說明他跟 useContext / Zustand / Recoli 的差別,詳細可以看 Large objects — Jotai。我看下來,簡單來說差異主要是在儲存的地方,Jotai 主要把狀態存在「context level」而 Zustand 則是存在「module level」(在 app 外全域儲存)。

Written by Yin

2025/7/27

Subscribe to new posts!

If you like topics like Tech, Software Development, or Travel. Welcome to subscribe for free to get some fresh ideas!