Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork23
UseReactDOM.createRoot
instead ofReactDOM.render
#238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Looks like this change broke the testing suite. Maybe the ReactJS version needs to be bumped to support this? |
Could be, but looking at the package lock, it seems to be in React 17, so it should support this. I'm not sure how the testing suite it set up, but |
Scratch that - |
Description
ReactDOM.render
is deprecated as of React 18 (seehere), and removed in React 19 (seehere). This switches to the alternative,ReactDOM.createRoot(...).render(<Root />)
.Checklist
Please update this checklist as you complete each item:
By submitting this pull request I agree that all contributions comply with this project's open source license(s).