Skip to content

Commit b9b6e0e

Browse files
committed
Fix ThemeContext usage in MyApp component
1 parent d3588fa commit b9b6e0e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/content/reference/react/Component.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,9 +1814,9 @@ function Form() {
18141814

18151815
export default function MyApp() {
18161816
return (
1817-
<ThemeContext.Provider value="dark">
1817+
<ThemeContext value="dark">
18181818
<Form />
1819-
</ThemeContext.Provider>
1819+
</ThemeContext>
18201820
)
18211821
}
18221822
```
@@ -1900,9 +1900,9 @@ function Form() {
19001900

19011901
export default function MyApp() {
19021902
return (
1903-
<ThemeContext.Provider value="dark">
1903+
<ThemeContext value="dark">
19041904
<Form />
1905-
</ThemeContext.Provider>
1905+
</ThemeContext>
19061906
)
19071907
}
19081908
```

0 commit comments

Comments
 (0)