What is React Server Components?
Why Interviewers Ask This
This tests whether you can apply React.js knowledge to real-world scenarios. Interviewers are looking for clarity of thought and evidence that you've encountered this in production code.
Answer
React Server Components (RSC) are a new paradigm (stable in React 19 / Next.js App Router) where components render exclusively on the server and send only the result (serialized React tree) to the client — not JavaScript. Benefits: (1) Zero bundle cost — server component code is never sent to the client. (2) Direct server access — query databases, read files, call backend services directly without API routes. (3) Streaming — server components stream output progressively, enabling instant loading states. (4) Automatic code splitting — only client-interactive parts are sent as JavaScript. Rules for server components: cannot use browser APIs, cannot use hooks, cannot use event listeners, cannot maintain interactive state. Client components (marked with "use client") work like traditional React components — they have state, hooks, and event handlers. Composition: server components can render client components, but client components cannot directly render server components (they can receive them as children). RSC is a fundamental shift in how React apps handle data fetching and rendering.
Pro Tip
Back up your answer with a specific project or situation. Saying 'In my last React.js project, I used this when...' immediately makes your answer more credible and memorable.
Previous
What is useTransition in React 18?
Next
What is the difference between useState and useReducer?