component tree
The nested structure of components that make up a page, from the root layout down to the smallest button.
In more detail
React renders the tree from the top down. A leaf is a component with no children of its own, and a subtree is a component and everything under it.
Example
The course pushes client boundaries down the tree so that most of it stays on the server.Related terms
- component — A reusable, self-contained piece of interface, such as a card or a modal, with its own markup, styles and behaviour.
- leaf component — A component at the bottom of the tree that renders no further custom components, such as a like button.
- '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.
Taught in
- App Router Architecture: Server-First Paradigms — 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
- Not Found Handling: not-found.tsx & Programmatic Exits — Next.js 15 & Modern App Router Architecture