diff --git a/benchmark/browser/index.js b/benchmark/browser/index.js index 96aa402228fa..39be522433ac 100644 --- a/benchmark/browser/index.js +++ b/benchmark/browser/index.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import ReactDOM from 'react-dom'; +import * as ReactDOM from 'react-dom'; // Get all the scenarios const requirePerfScenarios = require.context('./scenarios', true, /(js|ts|tsx)$/); diff --git a/packages/grid/x-data-grid-premium/package.json b/packages/grid/x-data-grid-premium/package.json index e9fedc75ec89..72d4344a97c3 100644 --- a/packages/grid/x-data-grid-premium/package.json +++ b/packages/grid/x-data-grid-premium/package.json @@ -56,7 +56,8 @@ "peerDependencies": { "@mui/material": "^5.4.1", "@mui/system": "^5.4.1", - "react": "^17.0.2 || ^18.0.0" + "react": "^17.0.2 || ^18.0.0", + "react-dom": "^17.0.2 || ^18.0.0" }, "setupFiles": [ "/src/setupTests.js" diff --git a/packages/grid/x-data-grid-pro/package.json b/packages/grid/x-data-grid-pro/package.json index b1187aa76ebc..2218b9ecc9f4 100644 --- a/packages/grid/x-data-grid-pro/package.json +++ b/packages/grid/x-data-grid-pro/package.json @@ -54,7 +54,8 @@ "peerDependencies": { "@mui/material": "^5.4.1", "@mui/system": "^5.4.1", - "react": "^17.0.2 || ^18.0.0" + "react": "^17.0.2 || ^18.0.0", + "react-dom": "^17.0.2 || ^18.0.0" }, "setupFiles": [ "/src/setupTests.js" diff --git a/packages/grid/x-data-grid/package.json b/packages/grid/x-data-grid/package.json index b8c9f1d85d27..d6df3f83140b 100644 --- a/packages/grid/x-data-grid/package.json +++ b/packages/grid/x-data-grid/package.json @@ -55,7 +55,8 @@ "peerDependencies": { "@mui/material": "^5.4.1", "@mui/system": "^5.4.1", - "react": "^17.0.2 || ^18.0.0" + "react": "^17.0.2 || ^18.0.0", + "react-dom": "^17.0.2 || ^18.0.0" }, "setupFiles": [ "/src/setupTests.js" diff --git a/test/e2e/index.js b/test/e2e/index.js index 0d4a7f15389f..e60b6bd01177 100644 --- a/test/e2e/index.js +++ b/test/e2e/index.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import ReactDOM from 'react-dom'; +import * as ReactDOM from 'react-dom'; import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import TestViewer from './TestViewer'; diff --git a/test/performance/index.js b/test/performance/index.js index 351488ad991d..c5b416985049 100644 --- a/test/performance/index.js +++ b/test/performance/index.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import ReactDOM from 'react-dom'; +import * as ReactDOM from 'react-dom'; import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import TestViewer from './TestViewer'; diff --git a/test/regressions/index.js b/test/regressions/index.js index 8de3c9d6a678..80afee594613 100644 --- a/test/regressions/index.js +++ b/test/regressions/index.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import ReactDOM from 'react-dom'; +import * as ReactDOM from 'react-dom'; 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';