What happens if you use providers using client component directive?
Answered
Dogue Brasileiro posted this in #help-forum
Dogue BrasileiroOP
I am wondering if you have providers that use 'client component' like
no pages will be server components.
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.
19 Replies
All the pages using the nextui components will be client side rendered Right?[No](https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props)
no pages will be server components.[Incorrect](https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props)
@aardani > All the pages using the nextui components will be client side rendered Right?
[No](https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props)
> no pages will be server components.
[Incorrect](https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#supported-pattern-passing-server-components-to-client-components-as-props)
Dogue BrasileiroOP
all components in the nextui are client components. so if you use only nextui throughout the app
then it would be fully client components Right?
i know you can pass server components as props
@Dogue Brasileiro all components in the nextui are client components. so if you use only nextui throughout the app
you can't pass props to nextui components?
@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?
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