React · Middle · Question 41 of 75
When is Redux (or Zustand) more appropriate than React Context?
- ✓Correct answer: When state changes often and you need fine-grained subscriptions
- 2Always: Context is deprecated and will be removed from React
- 3Only when the app has more than ten pages
Explanation
Context is a mechanism for passing a value deep into the tree, not a state manager: when value changes, all consumers re-render; there are no fine-grained subscriptions. For rarely changing data (theme, current user) it's enough. Stores with selectors give fine-grained subscriptions, middleware and DevTools.