How does the use client directive affect component rendering in Next.js

Does the "use client" directive in TRPCReactProvider mean that all components wrapped by TRPCReactProvider in RootLayout will be rendered on the client side?
6 Replies
dzenda
dzenda7mo ago
No
Dox
DoxOP7mo ago
why???? @dzenda
dzenda
dzenda7mo ago
No because children aren't affected by the 'use client'
dzenda
dzenda7mo ago
No description
Dox
DoxOP7mo ago
I see. Thanks man!

Did you find this page helpful?