how layer affects subpages
Answered
American Chinchilla posted this in #help-forum
American ChinchillaOP
if i make layout.tsx a
use client does it make all subpages that it wraps client side too?6 Replies
no.
Answer
Wrapping a layout.tsx will make only the code you import and the code inside the layout.tsx file client components
anything you wrap it with will not become client
unless you add the use client directive to its child pages
@American Chinchilla
American ChinchillaOP
Oh that's cool thanks