Next.js Discord

Discord Forum

What happens if you use providers using client component directive?

Answered
Dogue Brasileiro posted this in #help-forum
Open in Discord
Dogue BrasileiroOP
I am wondering if you have providers that use 'client component' like nextui. All the pages using the nextui components will be client side rendered Right?
no pages will be server components.
Answered by aardani
Client Component are still server side rendered if you set it up properly. Therefore client component should not be a deoptimization if used correctly.
View full answer

19 Replies

@aardani you can't pass props to nextui components?
Dogue BrasileiroOP
Yeah you can
But what if you don't use any other normal html ?
such as?
Dogue BrasileiroOP
html that can be server side rendered
like div, h1, etc
those will be server side rendered.
im asking the case where you dont use any other normal html.
such as how?
Dogue BrasileiroOP
only use nextui
without any other html
you dont put text inside nextui?
Client Component are still server side rendered if you set it up properly. Therefore client component should not be a deoptimization if used correctly.
Answer
If you used nextui, then no, it would not be "fully client components"
But it is normal for a website to have many client components
Dogue BrasileiroOP
Ok that makes sense