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
Jacob
Jacob13mo ago
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
sincere666
sincere66613mo ago
as long as you pass the children like this: <ClientLayout> {children} </ClientLayout> your child component should be fine to be server rendered
Want results from more Discord servers?
Add your server