Context wrapper and server rendering
Unanswered
Bartholomeas posted this in #help-forum
Hello, as on screen. When i wrap my root layout components into this layout it means that every of its children (passed as children) will be client side rendered, or it doesnt make any difference when i do not directly use "use client" (as this component doesnt directly contain any components, but gets it as a childrens) ? 🤔
1 Reply
@Bartholomeas Hello, as on screen. When i wrap my root layout components into this layout it means that every of its children (passed as children) will be client side rendered, or it doesnt make any difference when i do not directly use "use client" (as this component doesnt directly contain any components, but gets it as a childrens) ? 🤔
No, it won't become client component because we can passing server component to client component as props
https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props
https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props