State Management · Middle · Question 9 of 75
Is Context a state management library?
- ✓Correct answer: No: it's a dependency injection mechanism; state lives in
useState/useReducer - 2Yes: it replaces Redux and Zustand in every scenario
- 3Yes, but only for server components
Explanation
Context only transports a value through the tree. It has no selectors, middleware, devtools or caching. Combined with useReducer it covers many apps, but for frequent updates and fine-grained subscriptions a store is better.