State Management · Junior · Question 53 of 75
Where should a Context provider be placed?
- ✓Correct answer: As close as possible above the components that need the value, not automatically at the app root
- 2Always around
<html> - 3Inside every consumer component
Explanation
A lower provider limits which parts of the tree re-render when the value changes, and keeps unrelated features independent. Truly global values (theme, auth) can live near the root.