-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: where are client components rendered? #51606
Comments
Hey @gmoniava, apologies for the confusion. With Next.js, client components are pre-rendered on the server and hydrated on the client. It's the same behaviour that the For the second sentence:
This is the React behavior, without Next.js.
This is the Next.js optimization, on initial load. But I can see how that is not very clear. I'm updating the React Essentials page here if you have any further feedback: #51579 |
My point was it seems both quotes which I cited suggest something like this: "In Next.js, they are pre-rendered on the server and I see that PR plans to address some items like:
This is good because I had question about the first one myself for example. You can see others are interested in the first one too. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What is the improvement or update you wish to see?
I am somewhat confused about one part in Nextjs docs.
At one place it says:
Then a little bit below it it says:
It seems the first quote is suggesting in Nextjs client components are always pre-rendered on the server and hydrated on the client, while the second one says they might be pre-rendered on the server and hydrated on the client (notice the bold text use of word "can" in the second quote).
Can someone clear up this confusion in the docs?
Is there any context that might help us understand?
N/a
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/getting-started/react-essentials#client-components
The text was updated successfully, but these errors were encountered: