Skip to content

Commit 3661f11

Browse files
Update src/content/reference/react/createContext.md
Co-authored-by: Ricky <rickhanlonii@gmail.com>
1 parent 0997d57 commit 3661f11

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/content/reference/react/createContext.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ function App() {
6262
}
6363
```
6464

65-
`SomeContext.Provider` is an alias for `SomeContext` and was used in older versions of React before 19.0.
65+
<Note>
66+
67+
Starting in React 19, you can render `<SomeContext>` as a provider.
68+
69+
In older versions of React, use `<SomeContext.Provider>`.
70+
71+
</Note>
6672

6773
#### Props {/*provider-props*/}
6874

0 commit comments

Comments
 (0)