Lesson 2.116mIntermediate15.4k students

What server components actually do

Server components run on the server and send rendered output rather than code. That is why they can read a database directly and why they add nothing to your bundle.

This lesson sits in Server and Client Components, part of Next.js App Router in Depth. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Render on the server and ship no component code to the client
  • Read data and secrets directly, without an API round trip
  • Understand why server components cannot hold state or effects

Resources