diff --git a/examples/react/array/src/index.tsx b/examples/react/array/src/index.tsx index 715e50494..eb9f1e547 100644 --- a/examples/react/array/src/index.tsx +++ b/examples/react/array/src/index.tsx @@ -71,4 +71,8 @@ function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +) diff --git a/examples/react/next-server-actions/next.config.cjs b/examples/react/next-server-actions/next.config.cjs index 767719fc4..a843cbee0 100644 --- a/examples/react/next-server-actions/next.config.cjs +++ b/examples/react/next-server-actions/next.config.cjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + reactStrictMode: true, +} module.exports = nextConfig diff --git a/examples/react/query-integration/src/index.tsx b/examples/react/query-integration/src/index.tsx index 1475c0f52..a13122f88 100644 --- a/examples/react/query-integration/src/index.tsx +++ b/examples/react/query-integration/src/index.tsx @@ -129,7 +129,9 @@ const rootElement = document.getElementById('root')! const queryClient = new QueryClient() createRoot(rootElement).render( - - - , + + + + + , ) diff --git a/examples/react/simple/src/index.tsx b/examples/react/simple/src/index.tsx index 522871585..f7d2334e8 100644 --- a/examples/react/simple/src/index.tsx +++ b/examples/react/simple/src/index.tsx @@ -111,4 +111,8 @@ export default function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +) diff --git a/examples/react/ui-libraries/src/index.tsx b/examples/react/ui-libraries/src/index.tsx index ab89e5db7..8f6f04ac1 100644 --- a/examples/react/ui-libraries/src/index.tsx +++ b/examples/react/ui-libraries/src/index.tsx @@ -4,6 +4,8 @@ import { red } from '@mui/material/colors' import { ThemeProvider } from '@emotion/react' import { CssBaseline } from '@mui/material' import MainComponent from './MainComponent' +import React from 'react' + const theme = createTheme({ palette: { primary: { @@ -29,4 +31,8 @@ export default function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +) diff --git a/examples/react/valibot/src/index.tsx b/examples/react/valibot/src/index.tsx index 608b948e7..a7bba1606 100644 --- a/examples/react/valibot/src/index.tsx +++ b/examples/react/valibot/src/index.tsx @@ -109,4 +109,8 @@ export default function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +) diff --git a/examples/react/yup/src/index.tsx b/examples/react/yup/src/index.tsx index 21d86fb90..8980fbb4a 100644 --- a/examples/react/yup/src/index.tsx +++ b/examples/react/yup/src/index.tsx @@ -111,4 +111,8 @@ export default function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +) diff --git a/examples/react/zod/src/index.tsx b/examples/react/zod/src/index.tsx index 5c3e8df02..d5a74b2b3 100644 --- a/examples/react/zod/src/index.tsx +++ b/examples/react/zod/src/index.tsx @@ -110,4 +110,8 @@ export default function App() { const rootElement = document.getElementById('root')! -createRoot(rootElement).render() +createRoot(rootElement).render( + + + , +)