-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Fix implicit dependency on react-dom #5121
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,5 @@ | ||||||
import * as React from 'react'; | ||||||
import ReactDOM from 'react-dom'; | ||||||
import * as ReactDOM from 'react-dom'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @m4theushw When do we plan to use React 18? It would then be
Suggested change
per https://reactjs.org/blog/2022/03/29/react-v18.html#new-client-and-server-rendering-apis There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm only waiting for the core repo to adopt React 18 in the infra. But nothing stops us from adopting earlier. #4155 is open. |
||||||
import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; | ||||||
import { LicenseInfo } from '@mui/x-data-grid-pro'; | ||||||
import TestViewer from 'test/regressions/TestViewer'; | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bonus refactoring, to match the docs: https://reactjs.org/docs/react-dom.html.