We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7929509 commit 9a55055Copy full SHA for 9a55055
1 file changed
src/content/learn/typescript.md
@@ -260,9 +260,9 @@ export default function MyApp() {
260
const [theme, setTheme] = useState<Theme>('light');
261
262
return (
263
- <ThemeContext.Provider value={theme}>
+ <ThemeContext value={theme}>
264
<MyComponent />
265
- </ThemeContext.Provider>
+ </ThemeContext>
266
)
267
}
268
@@ -310,9 +310,9 @@ export default function MyApp() {
310
const object = useMemo(() => ({ kind: "complex" }), []);
311
312
313
- <Context.Provider value={object}>
+ <Context value={object}>
314
315
- </Context.Provider>
+ </Context>
316
317
318
0 commit comments