Skip to content

Conversation

@aarongarciah
Copy link
Member

In preparation for #42047, we need to remove react-dom deprecated APIs, namely, render and unmountComponentAtNode. This PR replaces these APIs with createRenderer, our React Testing Library wrapper.

@aarongarciah aarongarciah added test package: utils Specific to the utils package. integration: react About improving React support. labels Jun 28, 2024
@aarongarciah aarongarciah mentioned this pull request Jun 28, 2024
15 tasks
@mui-bot
Copy link

mui-bot commented Jun 28, 2024

Netlify deploy preview

https://deploy-preview-42780--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 303e01e

@aarongarciah aarongarciah force-pushed the remove-react-dom-deprecated-apis branch from 0312f13 to c16bd9f Compare June 28, 2024 11:02
@aarongarciah aarongarciah marked this pull request as draft June 28, 2024 11:16
@aarongarciah aarongarciah force-pushed the remove-react-dom-deprecated-apis branch from c16bd9f to 21d1ff5 Compare June 28, 2024 11:21
@aarongarciah aarongarciah marked this pull request as ready for review June 28, 2024 11:31
@aarongarciah aarongarciah requested a review from DiegoAndai June 28, 2024 11:31
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Getting closer and closer to React 18.3 🎉

@aarongarciah aarongarciah added the needs cherry-pick The PR should be cherry-picked to master after merge. label Jun 28, 2024
@aarongarciah aarongarciah requested a review from DiegoAndai June 28, 2024 15:52
@aarongarciah
Copy link
Member Author

@DiegoAndai ready for the last pass

@aarongarciah
Copy link
Member Author

Oops, one sec, I need to remove a spare React.cloneElement.

@aarongarciah
Copy link
Member Author

Now is ready

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

🚀

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

Labels

integration: react About improving React support. needs cherry-pick The PR should be cherry-picked to master after merge. package: utils Specific to the utils package. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants