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 third-party component uses useState internally but has no "use client" directive of its own. What's the standard fix to use it safely from a Server Component?
A
It can't be used at all
B
Wrap it in your own thin Client Component file (with "use client"), then use THAT wrapper anywhere, including from Server Components
C
Add "use client" to the Server Component that wants to use it
D
Rewrite the third-party library
Check Answer