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
A large modal component is only needed after a user clicks a button. What's the appropriate optimization?
A
Nothing needed — it doesn't matter
B
Wrap it with next/dynamic so its code isn't included in the initial bundle, loading only when the button is actually clicked
C
Convert it to a Server Component
D
Add "use cache" to it
Check Answer