DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Next.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
easy
Next.js
Which statement best describes the relationship between page.tsx and layout.tsx?
A
They're interchangeable — either can wrap the other
B
layout.tsx wraps page.tsx (and any nested routes) via a children prop; page.tsx is the actual route-specific content
C
page.tsx is optional but layout.tsx is required in every folder
D
layout.tsx only works with Client Components
Check Answer