All glossary terms
Design

Server component

A server component (React Server Components) is a React component that runs only on the server — it can fetch data directly from the database, use server-only secrets, and ship zero JavaScript to the client. The rendered output is serialised and sent to the client alongside any client components, enabling fine-grained server/client splits.

RSCs are React's answer to the per-page hydration cost of traditional SSR: a server component runs and produces its output without sending any of its code to the client, while client components (marked with 'use client') still hydrate as before. The model allows colocation of server logic and UI without forcing an API layer between them. The trade-offs: a new mental model (every component is server-by-default; client requires explicit opt-in), framework support is concentrated in Next.js App Router today, and debugging spans both server and client. The pattern has effectively reset the assumed structure of React apps for new builds in 2024-2026.

Related terms