Provider Pattern for Cross-Cutting Concerns
Learn how the Provider pattern wraps an app (or subtree) to make a value or service available throughout without prop drilling.
The Provider pattern refers to wrapping part of a component tree in a Context Provider so that any descendant can access a shared value or service without it being explicitly passed down through every intermediate component's props. It's less a distinct technical mechanism than a naming convention/architectural approach built directly on top of the Context API.
Providers are like separate utility hookups running through a building's walls — electricity, water, internet — each installed once near the building's entry point (the app root) and then accessible from any room (component) that has the right outlet or tap, without needing to run a private line from the basement to every single room individually.