Skip to content

docs: clarify repetitive phrasing in Preserving and Resetting State - #8631

Open
mdimamhosen wants to merge 2 commits into
reactjs:mainfrom
mdimamhosen:fix/8622-clarify-repetitive-phrasing
Open

docs: clarify repetitive phrasing in Preserving and Resetting State#8631
mdimamhosen wants to merge 2 commits into
reactjs:mainfrom
mdimamhosen:fix/8622-clarify-repetitive-phrasing

Conversation

@mdimamhosen

Copy link
Copy Markdown

Fixes #8622

Replaces awkward "first child of the first child of the root" with clearer wording that describes where React sees the Counter in the tree.

Fixes reactjs#8622

Replace awkward "first child of the first child of the root" wording
with a clearer description of where React sees the Counter in the tree.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is limited to a documentation rewording with only a minor grammar nit suggested for improved clarity.

Pull request overview

Updates the Learn docs page “Preserving and Resetting State” to replace an awkward, repetitive description of a component’s position in the rendered tree with clearer wording, addressing #8622.

Changes:

  • Rephrases the Pitfall explanation of how React identifies <Counter /> across conditional renders.
  • Removes the confusing “first child of the first child of the root” phrasing in favor of a clearer tree-location description.
File summaries
File Description
src/content/learn/preserving-and-resetting-state.md Clarifies the Pitfall wording describing where React “sees” <Counter /> in the returned element tree.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/content/learn/preserving-and-resetting-state.md Outdated
@github-actions

github-actions Bot commented Sep 2, 2026

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

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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]: Repeaded words in Pitfall section

2 participants