Skip to the page

React 19 & Compiler · Concept

React Server Components and the directives

The interviewer asks

What is a React Server Component? What do 'use client' and 'use server' actually mean? Is 'use server' how you mark a Server Component?

Then

Follow-ups the interviewer asks next

  1. What can and can't cross the boundary (serialisable props, functions only as Server Functions)?
  2. Can a Client Component import a Server Component (no, but it can receive one as children)?
  3. What is the RSC payload?
  4. Security: what did React2Shell (Dec 2025) teach about the RSC protocol?

The answer

What a strong answer covers

  • Server Components run only on the server (build or request time), ship no JS, can be async and read data directly.
  • 'use client' marks a module boundary: that module and its imports become client code.
  • 'use server' marks Server Functions (Actions) callable from the client. It is not for Server Components; those are the default.
  • Composition: pass server-rendered children into client components.
  • The RSC payload is a serialised tree used for navigation. Treat Server Functions as public endpoints. Patch promptly (the CVE-2025-55182 RCE).

The red pen

Common traps

Avoid:"'use server' makes a server component"; making the whole page a client component for one onClick.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview