Skip to content
Discussion options

You must be logged in to vote

Hi @kkjjss,

the great advantage of server components is that the javascript code is run on the server only - only HTML is sent to the client, there is no need to hydrate anything. You could build your whole dynamic web page as server components and the result would be pure HTML page with almost no additional Javascript. Client components, on the other hand, need to be hydrated - and will then execute the code on the client. Next.js renders even client components on the server, and sends some initial HTML, so the differences are in reality a bit smaller - but the code for the components must be delivered to the client, so the resulting JS bundle will be bigger and the whole page will take …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kkjjss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants