You now understand state management for frontend systems.
Core concepts:
- Local vs global: Start local, lift when needed
- Server vs client state: Different tools for different concerns
- Normalization: Store entities once, reference by ID
- Derived state: Compute, don't duplicate
- Optimistic updates: Update UI before server confirms
Interview approach:
Identify entities (users, posts, etc.)
Decide local vs global scope
Normalize related data
Separate server and UI state