Skip to content
ViraStack
Products
Academy
New
About
Search docs
⌘K
Home
Sources
Contribute
Academy
Zustand
Small, fast client state: selectors, slices, persist and use alongside TanStack Query.
Fundamentals
01
When you need a store
11 Docs
6 Articles
The kinds of state, local state, and where Context is not enough.
02
Your first store
7 Docs
create, set, get, and reaching the store from outside React.
03
Selectors and re-renders
4 Docs
1 Article
Atomic selectors, useShallow and custom hooks.
04
Actions and updates
6 Docs
1 Article
Actions as events, immer and resetting the store.
Advanced Use
05
The slice pattern
3 Docs
1 Article
Splitting the store into small stores or into slices.
06
Persist and devtools
6 Docs
Persistent state, migrations, hydration and Redux DevTools.
07
A store with Context
4 Docs
2 Articles
Initialising from props, reuse, testing and Next.js.
08
Using it with TanStack Query
2 Docs
3 Articles
1 Video
Driving a query from a filter, and deriving state.
09
Product catalogue and cart
Project
6 Docs
2 Articles
A filter store, a persistent cart built from slices, and a derived stock warning.
Previous track
TanStack Query
Next track
Forms