Skip to content

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

Open
wook10 wants to merge 1 commit into
reactjs:mainfrom
wook10:fix/preserving-state-repeated-first-child
Open

docs: clarify repetitive phrasing in Preserving and Resetting State#8623
wook10 wants to merge 1 commit into
reactjs:mainfrom
wook10:fix/preserving-state-repeated-first-child

Conversation

@wook10

@wook10 wook10 commented Aug 23, 2026

Copy link
Copy Markdown

Summary

The Pitfall in Preserving and Resetting State described both <Counter /> positions as:

the first child of the first child of the root

Chaining two "first child of" hops reads like an accidental duplicate phrase (see #8622), even though it's technically describing two levels of nesting (App's returned <div>, then <Counter /> inside it). Rephrased to name the anchor directly instead of chaining the hops:

they're both the first child of the <div> that App returns

Fixes #8622

… phrasing

The Pitfall in "Preserving and Resetting State" described both
Counters' shared position as "the first child of the first child of
the root," which reads like an accidental duplicate phrase. Rephrase
to name the anchor directly (the <div> App returns) instead of
chaining two "first child of" hops.

Fixes reactjs#8622
@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]: Repeaded words in Pitfall section

1 participant