how does passing a component as children vs importing into a client component differ?
Unanswered
Jumbo flying squid posted this in #help-forum
Jumbo flying squidOP
Hey all, this stems from a previous question regarding context wrapping. How exactly does importing into a component differ from wrapping a component and passing components as children? Specifically I'm thinking about the ability to wrap server components in a client component without marking every child as a client component. However, if we import a component into a client component then it and all its children are client components.
4 Replies
Jumbo flying squidOP
i must say i love that you have a website for that, thank you
Jumbo flying squidOP
one follow up: How does passing as children differ than importing?
Jumbo flying squidOP
im guessing server components are not part of the bundle and thus can't be imported