Skip to content
RED SAGSkills
hardFrontend Developer interview question

What are React Server Components, and how do they change the way you build a React app?

What the interviewer wants to hear

  • Components that render only on the server and send no JS to the client
  • Can access data sources directly and be async
  • Client Components marked with "use client" for interactivity
  • Props across the boundary must be serialisable
  • Reduce bundle size; combine with Suspense streaming
  • Need care with caching and data freshness

Model answer

React Server Components run only on the server, during the build or per request. Their code and dependencies are never sent to the browser, which shrinks the JavaScript bundle. They can be async and read from a database or internal API directly, so data fetching moves closer to the data and avoids client waterfalls. Anything interactive, using state, effects or browser APIs, must be a Client Component marked with "use client". The main rule is that props passed from a server to a client component must be serialisable, so no functions except Server Actions. In practice, I keep most of the tree as server components and push client components to the leaves. With Suspense, slow parts can stream in later. The trade-off is a new mental model, and I must think carefully about caching and when data is revalidated.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Frontend Developer questions