2min chapter

Frontend First cover image

Server-side rendering vs. Server Components

Frontend First

CHAPTER

How to Get From Server Components to Client Components in a Browser

The first step is use the react We all have been using for years you run a command and you get a bundle of client code that you load in a script tag in the browser. Now you introduce server components and the way the server components actually work Kind of undo what I just said, which is like you have the server components and then you have the client bundle That's loaded now. It's actually the server components that are resulting in a bundle So instead of the bundle being just generated at build time Let's say and loaded once for the whole app and then making API requests You don't really matter that bundle gets like loaded and reloaded in the client. The result is still the same

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode