Course contentsShow
← React
Lesson 1546 of 2,39638. Server Components FundamentalsFree lesson

The Server Tree: Components That Never Reach the Browser

Understanding how Server Components form a tree that renders once on the server and ships only HTML/RSC payload, not JS.

The Server Tree: Components That Never Reach the Browser

What you'll learn: How Server Components form a tree structure that renders entirely on the server, sending only the result—not the component code itself—to the browser.

The Server Component Tree

When you build with Server Components, you're creating a tree of components that exists only on the server. Think of it like a chef preparing a meal in the kitchen: the customer (browser) sees the finished dish, not the recipe, ingredients, or cooking process.

Your Server Components render once on the server, producing either:

  • HTML for the initial page load
  • An RSC payload (that special wire format we learned about) for subsequent navigations

The key insight: The JavaScript code for these components never ships to the browser. Not hidden, not lazy-loaded later—never sent at all.

What Lives in This Tree

Every component in your app that doesn't have a 'use client' directive forms part of this server tree. They can:

  • Fetch data directly
  • Access databases and filesystems
  • Import heavy server-only libraries
  • Contain complex business logic

All of this processing happens on the server, and only the output crosses the network.

The Tree Metaphor

Imagine your component hierarchy as an actual tree:

  • The server portion of the tree has deep roots and a thick trunk—lots of code, lots of logic
  • Only the leaves (the final rendered result) reach across to the client
  • Client Components are like branches that grow from those leaves, existing in the browser

You get the full power of your server environment without any of that weight reaching users' devices.

Key Takeaway: Server Components form a tree that renders once on the server and ships only its output—the components themselves never become browser JavaScript, permanently reducing your bundle size.