-
SummaryIf we use 'use client' in Or will SEO not be affected? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
No. 'use client' components, are still SSR'd: Client Components are the same components we have used up till now. The new thing are Server Components, which exclusively render on a server context. This also means that you cannot access window, and other DOM APIs, etc. Your code still has to be able to run in both server and browser JavaScript contexts. There are techniques to side-step SSR for Client Components though, but it is nothing you get out of the box so to speak: |
Beta Was this translation helpful? Give feedback.
-
I came across this post and I tried to play around with the links @icyJoseph gave in the marked answer comment. But there are still things that I can't confirm. I asked a question in original repo about SSG or ISR not working with |
Beta Was this translation helpful? Give feedback.
No.
'use client' components, are still SSR'd:
Client Components are the same components we have used up till now. The new thing are Server Components, which exclusively render on a server context.
This also means that you cannot access window, and other DOM APIs, etc. Your code still has to be able to run in both server and browser JavaScript contexts.
There are techniques to side-step SSR for Client Components though, but it is nothing you get out of the box so to speak: