What it does
A Cursor rules file about where state should live in a React app. It keeps local UI state in components, uses the URL for shareable filters, leaves server data to a query library and reserves Zustand for client state shared across unrelated components, with small typed stores.
Use cases
- 01Decide between local state, URL state and a store
- 02Design a small typed Zustand store with actions
- 03Avoid copying server data into client stores