A quesitos about nextui library
Answered
Giant wood wasp posted this in #help-forum
Giant wood waspOP
I have a question, how could SEO affect on a app, using for example nextui, that to use it I have to wrap the entire app in a provider that is a component that uses 'use client'. Will the application become a client-side renderer?
Answered by Rafael Almeida
the usage of the
when you wrap a RSC (server component) with a RCC (client component) it won't change the RSC to be RCC, it is a normal pattern explained in the docs: https://nextjs.org/docs/getting-started/react-essentials#rendering-third-party-context-providers-in-server-components
'use client' directive doesn't mean the component will be client-side rendered, it just means it will render both in the server and the client: https://nextjs.org/docs/getting-started/react-essentials#client-componentswhen you wrap a RSC (server component) with a RCC (client component) it won't change the RSC to be RCC, it is a normal pattern explained in the docs: https://nextjs.org/docs/getting-started/react-essentials#rendering-third-party-context-providers-in-server-components
13 Replies
the usage of the
when you wrap a RSC (server component) with a RCC (client component) it won't change the RSC to be RCC, it is a normal pattern explained in the docs: https://nextjs.org/docs/getting-started/react-essentials#rendering-third-party-context-providers-in-server-components
'use client' directive doesn't mean the component will be client-side rendered, it just means it will render both in the server and the client: https://nextjs.org/docs/getting-started/react-essentials#client-componentswhen you wrap a RSC (server component) with a RCC (client component) it won't change the RSC to be RCC, it is a normal pattern explained in the docs: https://nextjs.org/docs/getting-started/react-essentials#rendering-third-party-context-providers-in-server-components
Answer
Green Heron
Will this be a problem if I use Dynamic Routes with app directory?
Like when I reload it wont load anything but a blank html.
Like when I reload it wont load anything but a blank html.
Lets say I have a static Page
And then a Dynamic Route one
/users/[user]/page.tsx
When i refresh the Page in the URL: /users/user1
It loads only a blank html but nothing else
On local work but not on Vercel production
@Rafael Almeida
It seems it cannot find the Dynamic Page
Because if its Dynamic its rendered on the server.
this seems like a completely different problem so not really relevant to this post
@Rafael Almeida this seems like a completely different problem so not really relevant to this post
Green Heron
I made a post but no one answered