Skip to content

Docs Document cleanup when replacing renderIntoDocument - #8719

Open
Jubayeromi wants to merge 3 commits into
reactjs:mainfrom
Jubayeromi:docs/render-cleanup
Open

Jubayeromi wants to merge 3 commits into
reactjs:mainfrom
Jubayeromi:docs/render-cleanup

Conversation

@Jubayeromi

@Jubayeromi Jubayeromi commented Oct 30, 2026 •

Copy link
Copy Markdown

##28

Clarify how to clean up rendered components when migrating from renderIntoDocument() to React Testing Library’s render(). Document the returned unmount function, automatic test cleanup, and handling portals or separate roots.

Related issue: react/react#10330

Because the issue is in the react/react repository, reference it by its full repository and issue number rather than using Fixes #10330 in a react.dev PR

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

This branch was successfully deployed

1 active deployment
Preview — c0d82b98 Deployed Oct 30, 2026 by vercel[bot]
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.

1 participant