Question · Next.js course · Module 2: Routing and Layouts
The layout.js File in App Router
The layout.js file is used for:
Answer options
- API configuration
- Defining a shared layout for pages
- Error handling
- Loading data
Show the answer
Correct answer:
- Defining a shared layout for pages