State architecture visual mental model
Senior React state management starts by classifying what kind of state you have, not by picking a library.
modal open · active tab · hover/selection · local draft
coordinated workflow state shared across a feature or app boundary
remote records, cache freshness, invalidation, retries, pagination
route · filter · sort · page · shareable navigation choices
browser APIs · third-party stores · subscription-driven sources
values calculated from current authoritative inputs
Choose one owner per fact
The danger begins when several layers independently mutate copies of the same fact.
State scope ladder
keep state local
lift state
subtree distribution and shared feature ownership
Redux Toolkit · Zustand · other deliberately chosen store
Server state is a different lifecycle
Your UI is authoritative for the current value and transition rules.
The server remains authoritative; the client holds snapshots with freshness, retry, invalidation, and synchronization concerns.
URL state deserves first-class ownership
?page=2&sort=price
Avoid a second synchronized copy in component or global state unless there is a clear lifecycle reason.
External stores and useSyncExternalStore
Architecture rule
Continue with State Categories and useSyncExternalStore before moving into the ecosystem-specific sections 16A–16F.