If Layout is Client Component, are all children clients?
Unanswered
Barbary Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Barbary LionOP
If I have a dashboard layout that's 'use client' does that mean all children (and everything inside my dashboard that's wrapped by that layout is now client component ?)
6 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Masai Lion
you can not have a layout that use client
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
No
Only components imported to that layout become client components
The restriction only applies to the root layout. Other layouts can be client components just fine. Whether it is good practice is another matter
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Masai Lion
oh ok thanx
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Barbary LionOP
Ah ok thanks