CodeZettaInterview Hub

Next.js · Server Components · Junior · Comparison

What can Server Components do that Client Components cannot?

Short Interview Answer

Directly await databases/APIs, keep secrets server-side, and omit heavy logic from the client bundle.

Detailed Explanation

Fetch with cookies/headers, read files, and use server-only modules. Pass serializable data to Client Components for interactivity. This shifts the default toward less JS on the wire.

Did you know this answer?