Client Component
A component whose code is also sent to the browser so it can use state, effects and event handlers.
In more detail
A module marked with use client, and everything it imports, becomes client code. Client Components still render to HTML on the server for the first load and then hydrate in the browser.
Related terms
- React Server Components — React components that run only on the server, sending their rendered result to the browser without shipping their code.
- 'use client' — The directive that marks a module as the entry point to client code, so it and its imports are sent to the browser.
- hydration — The step where React in the browser attaches event handlers and state to HTML that was already rendered on the server.
Taught in
- App Router Architecture: Server-First Paradigms — Next.js 15 & Modern App Router Architecture
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Client Components: use client & Hydration Models — Next.js 15 & Modern App Router Architecture
- Component Tree Composition: Interleaving RSC & Client — Next.js 15 & Modern App Router Architecture
- Serialization Boundaries: Props & Server Guardrails — Next.js 15 & Modern App Router Architecture
- Error Boundaries: Nested error.tsx & Reset Logic — Next.js 15 & Modern App Router Architecture