State Management · Junior · Question 18 of 75

What problem does the Context API solve?

Explanation

Context makes a value (theme, current user, locale) available to any descendant. It's a transport for values, not a state manager: the state itself still lives in useState/useReducer of the provider component.

Further reading

Problem with a question

State Management · Junior · question 18

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