Next.js Discord

Discord Forum

Put server component into client one is good for SEO?

Answered
Selkirk Rex posted this in #help-forum
Open in Discord
Selkirk RexOP
I mean when u create some client component that renders its own children.
and then wrap you server component with this client one. will SEO be same? or will it be bed?
Answered by joulev
No, it won’t be bad, don’t worry. Client components are prerendered on the server so still available without JavaScript
View full answer

9 Replies

@Selkirk Rex I mean when u create some client component that renders its own children. and then wrap you server component with this client one. will SEO be same? or will it be bed?
Take a look at the network logs, when you request your page. Is the content, that you want to be indexed for visible provided by the server? If yes: good for SEO, if no: bad for SEO
Selkirk RexOP
its first what was fetched
i suppose its good for SEO
so when crawler sends requests to server then server returns HTML response
and after that hydration happens
so because of hydration in any case will be have good SEO?
@Selkirk Rex I mean when u create some client component that renders its own children. and then wrap you server component with this client one. will SEO be same? or will it be bed?
No, it won’t be bad, don’t worry. Client components are prerendered on the server so still available without JavaScript
Answer