State Management · Junior · Question 22 of 75

Which data is a good fit for Context?

Explanation

Context shines for app-wide settings and dependencies (e.g. an API client). Rapidly changing values in a widely used context cause many re-renders; keep such state local or use a store with selectors.

Further reading

Problem with a question

State Management · Junior · question 22

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