01Overview
Zustand is a small, hook-based state management library. A framework-agnostic store core (createStore in src/vanilla.ts) holds state, a listener set and setState/getState/subscribe; thin React bindings expose it as a hook through useSyncExternalStore. Everything else (persist, devtools, redux, immer, combine) is optional middleware that wraps the store's set/get/api and is shipped as separate entry points via the rollup build.
Verified by static imports
Inferred runtime relationship
anthropic · Claude · 11/27/2026
Done by Claude (an AI by Anthropic): Claude wrote this analysis from the files RepoLens selected, then RepoLens's pipeline checked every path, import link and line number against the real repo.