Standardized guidelines and patterns for Frontend State Strategy.
Is it server data? → React Query
Is it global UI state? → Zustand/Context
Is it local to component? → useState
Is it derived? → useMemo
// Local
const [count, setCount] = useState(0);
// Global
const theme = useThemeStore(state => state.theme);
// Server
const { data: user } = useQuery('user', fetchUser);
// URL
const [searchParams] = useSearchParams();