Next.js · Junior · Question 5 of 75

What must the root app/layout.tsx contain?

Explanation

The root layout replaces _app and _document from the Pages Router and must render <html> and <body> itself. Metadata is set via the metadata or generateMetadata export, not next/head. Next.js has no mandatory provider.

Further reading

Problem with a question

Next.js · Junior · question 5

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz