You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**The context object itself does not hold any information.** It represents _which_ context other components read or provide. Typically, you will use [`SomeContext.Provider`](#provider) in components above to specify the context value, and call [`useContext(SomeContext)`](/reference/react/useContext) in components below to read it. The context object has a few properties:
41
+
**The context object itself does not hold any information.** It represents _which_ context other components read or provide. Typically, you will use [`SomeContext`](#provider) in components above to specify the context value, and call [`useContext(SomeContext)`](/reference/react/useContext) in components below to read it. The context object has a few properties:
42
42
43
-
*`SomeContext.Provider` lets you provide the context value to components.
43
+
*`SomeContext` lets you provide the context value to components.
44
44
*`SomeContext.Consumer` is an alternative and rarely used way to read the context value.
45
+
*`SomeContext.Provider` is a legacy way to provide the context value before React 19.
45
46
46
47
---
47
48
48
-
### `SomeContext.Provider` {/*provider*/}
49
+
### `SomeContext` {/*provider*/}
49
50
50
51
Wrap your components into a context provider to specify the value of this context for all components inside:
0 commit comments