React
Back to journalReact

A working mental model for React Server Components

Dec 01, 202410 min readHSHarshal Singh

After a year of shipping with RSC in production, here's the framing that finally made it click for my team.

Server Components confused everyone on my team for the first month. Here's the framing that finally got us all on the same page.

Server is the default; client is an opt-in

Flip the mental model. By default, your component runs on the server, has zero JS cost on the client, and can talk to your data layer directly. You only opt into the client when you need interactivity.

Tagged

#React#Next.js#RSC
HS

Harshal Singh

Software Engineer · Mumbai, India

Get in touch

Keep reading

All posts →