extra credit Search 85,062 technologies ⌘K Download for Mac

Zustand

Category
Frameworks and libraries
Docs outline
13 sections

Official docs outline

zustand.docs.pmnd.rs
  1. Introduction

    Creating a store with create and using it as a hook in React components.

  2. Updating state

    Using set, partial updates, nested state and immutable updates.

  3. Immutable state and merging

    How set merges shallowly and how to replace or deeply update state.

  4. Selectors and preventing rerenders

    Selecting slices of state and useShallow to avoid unnecessary re-renders.

  5. Slices pattern

    Splitting a large store into composable slices.

  6. TypeScript guide

    Typing stores with the curried create<T>()() form, and advanced typing for middleware.

  7. Persist middleware

    Persisting store state to localStorage or other storage and rehydration options.

  8. Devtools middleware

    Redux DevTools integration and time-travel debugging.

  9. Immer middleware

    Writing mutable-style updates that produce immutable state.

  10. subscribeWithSelector middleware

    Subscribing to granular store updates outside React.

  11. Vanilla stores (createStore)

    Using stores without React and binding them with useStore.

  12. SSR, hydration and Next.js

    Avoiding shared server state and hydration mismatches in Next.js.

  13. Testing

    Resetting stores and testing components that use Zustand.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 113
↑↓ move ↵ open