props
The inputs passed to a component, written like HTML attributes, such as <Avatar size={48} />.
In more detail
Props flow one way, from parent to child, and a component should treat them as read-only. Changing what a parent passes causes the child to render again with the new values.
Example
Props passed from a Next.js Server Component to a Client Component must be serializable: no ordinary functions or class instances.Related terms
- component — A reusable, self-contained piece of interface, such as a card or a modal, with its own markup, styles and behaviour.
- children prop — The special React prop holding whatever is placed between a component's opening and closing tags.
- serialization — Turning an in-memory object into bytes, such as JSON text, that can be sent or stored, and parsing it back again.
Taught in
- 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
- Root & Nested Layouts: State Preservation Semantics — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Granular Suspense: Resolving Waterfall Bottlenecks — Next.js 15 & Modern App Router Architecture
- Error Boundaries: Nested error.tsx & Reset Logic — Next.js 15 & Modern App Router Architecture