Docs: Adjust message about RootLayout (#61199)
This commit is contained in:
parent
b5750cfc80
commit
94b9afe219
1 changed files with 0 additions and 1 deletions
|
@ -150,7 +150,6 @@ export default function RootLayout({ children }) {
|
|||
> - The root layout must define `<html>` and `<body>` tags since Next.js does not automatically create them.
|
||||
> - You can use the [built-in SEO support](/docs/app/building-your-application/optimizing/metadata) to manage `<head>` HTML elements, for example, the `<title>` element.
|
||||
> - You can use [route groups](/docs/app/building-your-application/routing/route-groups) to create multiple root layouts. See an [example here](/docs/app/building-your-application/routing/route-groups#creating-multiple-root-layouts).
|
||||
> - The root layout is a [Server Component](/docs/app/building-your-application/rendering/server-components) by default and **can not** be set to a [Client Component](/docs/app/building-your-application/rendering/client-components).
|
||||
|
||||
> **Migrating from the `pages` directory:** The root layout replaces the [`_app.js`](/docs/pages/building-your-application/routing/custom-app) and [`_document.js`](/docs/pages/building-your-application/routing/custom-document) files. [View the migration guide](/docs/app/building-your-application/upgrading/app-router-migration#migrating-_documentjs-and-_appjs).
|
||||
|
||||
|
|
Loading…
Reference in a new issue