~/alexsh.blog

$ cat react-internals/09-server-components.md

Server Components

February 9, 20261 min readpart 09/13

React Server Components execute on the server and stream a serialized format to the client — not HTML, but the Flight protocol:

codetsx
0:["$","div",null,{"children":[["$","h1",null,{"children":"Hello"}]]}]
1:I["./ClientComponent.js","ClientComponent"]

"$" marks React elements. "$L1" means a lazy reference to a Client Component. Server Components are pre-rendered — their code never ships to the client. The "use client" directive creates the boundary; props crossing it must be serializable.

Further reading