Context.Provider

Context.Provider

<MyContext.Provider value={/* some value */}>

Every Context object comes with a Provider React component that allows consuming components to subscribe to context changes.

Accepts a value prop to be passed to consuming components that are descendants of this Provider.

Related concepts

Context.Provider

Context.Provider — Structure map

Clickable & Draggable!

Context.Provider — Related pages: