Skip to content

Improve the browser-only rendering example - #8616

Merged
aurorascharff merged 3 commits into
reactjs:mainfrom
aurorascharff:codex/browser-saved-draft-example
Aug 20, 2026
Merged

Improve the browser-only rendering example#8616
aurorascharff merged 3 commits into
reactjs:mainfrom
aurorascharff:codex/browser-saved-draft-example

Conversation

@aurorascharff

Copy link
Copy Markdown
Collaborator

Summary

  • replace the placeholder editor with a saved-draft example that uses localStorage
  • reuse the example from the browser, use, and Suspense documentation entry points
  • keep Render the page so the server-rendered fallback is visible
  • hide the rendering and hydration plumbing and simplify the preview styling

Verification

  • yarn eslint src/content/reference/react-dom/browser.md src/content/reference/react/use.md src/content/reference/react/Suspense.md
  • yarn lint-heading-ids
  • git diff --check
  • manually verified the fallback and hydrated draft on all three local documentation pages

@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! 🙌

@aurorascharff
aurorascharff marked this pull request as ready for review August 20, 2026 20:12
@aurorascharff
aurorascharff force-pushed the codex/browser-saved-draft-example branch from f3b186f to dcde1e1 Compare August 20, 2026 20:15
@aurorascharff
aurorascharff merged commit 12d692d into reactjs:main Aug 20, 2026
5 checks passed
@aurorascharff
aurorascharff deleted the codex/browser-saved-draft-example branch August 20, 2026 20:35
see-stack pushed a commit to see-stack/react.dev that referenced this pull request Aug 22, 2026
* Improve browser-only rendering example

* Clarify browser-only example action

* Show browser-only fallback on reload
see-stack pushed a commit to see-stack/react.dev that referenced this pull request Aug 22, 2026
* Improve browser-only rendering example

* Clarify browser-only example action

* Show browser-only fallback on reload
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.

2 participants