Use Context for low-frequency global auth state, such as an `AuthContext` with the user and logout action. Use Zustand for frequent or broader global updates, and pair auth/session fetching with React Query or SWR so the cache remains the source of truth.
Installs into .claude/skills of the current project.
Are you the author of React State Management?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-react-state-management-agent-skills-standard)
Use Context for low-frequency global auth state, such as an `AuthContext` with the user and logout action. Use Zustand for frequent or broader global updates, and pair auth/session fetching with React Query or SWR so the cache remains the source of truth.