A custom Context Hook can centralize useContext access and give developers a clear error when a component is rendered outside the matching provider.
Question 7 of 20 in Advanced Context Patterns Quiz