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
medium
Next.js
A Layout renders a static Logo (Server Component) and an interactive Search (Client Component) as siblings. Should Layout itself be marked "use client"?
A
Yes, since it contains a Client Component
B
No — only Search's own file needs the directive; marking Layout would unnecessarily pull Logo into the client bundle too
C
Yes, all layouts must be Client Components
D
It doesn't matter either way
Check Answer