The console log of my home page runs both in the server and in the browser? Why is that?
Can anyone explain why and what is the purpose of it?
2 Replies
fascinating-indigo•8mo ago
server generation, to get the body of the page immediately on the client, and then client side hydration, to make sure everything is in sync and that the dom matches for the client side js to properly work
this is like client components in Nextjs
(their name is confusing, but client side components do render on the server first)
inland-turquoiseOP•8mo ago
Thanks for the explanation!