mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
For group routes, as their custom layout show up at the 1st level of the loader tree, so previously we tried to add the default not-found to that layer, but if they have custom root not-found, we should use that as the root not-found componeny, instead of using default not-found component to form the 404 page Closes NEXT-1588 Fixes #51075 Fixes #54892
12 lines
181 B
JavaScript
12 lines
181 B
JavaScript
export default function RootLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<head />
|
|
<body>
|
|
<h1>Root layout</h1>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|