If a Next.js 13 Layout is a clientcomponent, is the page automatically a client component as well?
Title should explain it all, lmk if it doesn’t.
2 Replies
no its not, your page can be a server componet even if the layout is a client
And from this in any page or react component, can have client and sever components in one
as long as you pass the children like this:
<ClientLayout>
{children}
</ClientLayout>
your child component should be fine to be server rendered