State Management · Senior · Question 3 of 75

What's the difference between the "subscribe to a selector" model (Redux, Zustand) and Context?

Explanation

Context has no selectors: any value change re-renders every consumer. Stores run each subscriber's selector and compare results, so updates are fine-grained. Libraries like use-context-selector emulate this on top of Context.

Further reading

Problem with a question

State Management · Senior · question 3

Test yourself

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

Take this quiz