Client components and Server Components
Unanswered
Horned Puffin posted this in #help-forum
Horned PuffinOP
Hi!, someone could explain me what happen internally when a client component has inside a server component and viceversa, I undertand that the server component is rendered first and then the client component, is that correct?
5 Replies
Server components are rendered on the server, client components are rendered when they hit the clients browser. There are a bit more nuances than that, but thats the general gist of it.
Are you having an issue or just looking for a better understanding?
This is a really good resource
https://nextjs.org/learn/react-foundations/server-and-client-components
https://nextjs.org/learn/react-foundations/server-and-client-components
One of the nuances and potentially confusing parts but really dont matter is that client components are still pre-rendered on the server.