State Management · Junior · Question 21 of 75

Which components re-render when a provider's value changes?

Explanation

All consumers of the context re-render, even if they use only one field of a large object. That's why Context is great for rarely changing values and less suitable for frequently changing state.

Further reading

Problem with a question

State Management · Junior · question 21

Test yourself

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

Take this quiz