Where should the Server/Client Component boundary go?
Understand the idea, explain it in your own words and use the rubric to find your next learning gap.
The idea behind the question
The client directive creates a module boundary for interactive code. It does not make exposed client values secret or mean every component should become client-rendered.
A server-fetched article contains an interactive bookmark button that only needs a small set of public props.
A practical way to learn it
Split an article with a bookmark control into a server data boundary and a small interactive component.
Open Next.js project studioThe related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.
Build an explanation you understand
- State what the concept does in plain language.
- Apply it to the example and make your assumptions explicit.
- Explain a trade-off, failure case and how you would test it.
- Distinguish your actual experience from a proposed approach.
How would you explain it?
Single-question timers reset on refresh. Full mock sessions can resume from this browser.
Strengthen your explanation
Compare reasoning, not identical wording. Reference answers describe a possible approach; replace hypothetical statements with truthful details from your own work.
One way to answer
I would keep data access and secret-bearing operations on the server, then introduce a narrow client boundary where state, effects or browser APIs are needed. I would pass serializable props and avoid importing server-only code into a client dependency graph. A Client Component can still participate in initial server-rendered HTML, so I would not define it as code that never runs on the server. I would inspect bundle size and verify authorization at every server mutation rather than relying on a hidden button.
What a strong explanation should cover
Tick only the points your own answer addresses. This is self-assessment, not AI scoring.
0 / 3 points self-reportedWatch out for
- Adding use client to the root layout to fix one interactive button.
Now go one level deeper
- Can a Server Component be passed as children?
- What would happen if a browser API runs during initial rendering?
Further reading
Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.