React · Middle · Question 41 of 75

When is Redux (or Zustand) more appropriate than React Context?

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.

Further reading

Problem with a question

React · Middle · question 41

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz