mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? Let Next.js enable React Strict Mode by default for the App Router. This caught a bug with the `AppRouterAnnouncer` added in #47018 which should be fixed as well. ### Why? This logic: https://github.com/vercel/next.js/blob/a0d1d728b9003f12c9df6c5e9a33bc4c33cef0ab/packages/next/src/build/webpack-config.ts#L326-L333 assumes that the default value of `reactStrictMode` is `null`, but it was set to `false` in #46656. ### How? This PR reverts the default value to `null`. Closes NEXT-1484 Fixes #53315 --------- Co-authored-by: Tim Neutkens <[email protected]>
8 lines
115 B
JavaScript
8 lines
115 B
JavaScript
export default function Root({ children }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|