Skip to content

docs: clarify Client Components are pre-rendered during SSR#8489

Draft
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-7223
Draft

docs: clarify Client Components are pre-rendered during SSR#8489
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-7223

Conversation

@LuxologyGG

Copy link
Copy Markdown

Fixes #7223

Summary

The use client reference incorrectly implied that Client Components are skipped during server rendering. Client Components are pre-rendered to HTML on the server and hydrated on the client.

Changes

  • Clarify that Client Components are pre-rendered on the server during SSR
  • Update Client/Server Component definitions to reflect server pre-rendering + client hydration
  • Remove misleading "opting-out of evaluating client-marked code" language

Verification

Documentation-only change.

Fixes reactjs#7223

The use-client reference incorrectly implied that Client Components
are skipped during server rendering. Client Components are pre-rendered
to HTML on the server and hydrated on the client.
@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Typo]: Client Components running on the server

2 participants