Skip to content

Commit e83aaea

Browse files
authored
Update src/content/reference/react/createContext.md
1 parent abd578e commit e83aaea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/reference/react/createContext.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const ThemeContext = createContext('light');
4242

4343
* `SomeContext` lets you provide the context value to components.
4444
* `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.
4546

4647
---
4748

0 commit comments

Comments
 (0)