State Management · Junior · Question 18 of 75
What problem does the Context API solve?
- ✓Correct answer: Passing a value deep into the tree without forwarding it through every level
- 2Storing server data with caching and refetching
- 3Speeding up renders by skipping unchanged components
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.