Client and server component
Answered
Black Caiman posted this in #help-forum
Black CaimanOP
I am new in next and i have nooby question, lets say i have 2 component wraped in each other like AuthContext then i wrapped children by it in the layout.tsx will that make all the pages that use this layout client component
<AuthContext>{children}<AutContext>2 Replies
Asian black bear
No.
Answer
Asian black bear
Anything that is a server component will be rendered server-side and then slotted into the tree on the client-side.