AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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