Skip to content

Commit 5c8cd7c

Browse files
authored
Merge pull request #1971 from Usama-Tahir/master
refactor: upgrade `React` to `18` and `mui/*` to `latest`
2 parents b7f47f2 + b814fe4 commit 5c8cd7c

File tree

4 files changed

+1056
-892
lines changed

4 files changed

+1056
-892
lines changed

examples/Router/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import { HashRouter as Router, Route, Switch, withRouter } from 'react-router-dom';
44
import { withStyles } from 'tss-react/mui';
55
import ExamplesGrid from './ExamplesGrid';
@@ -78,5 +78,6 @@ function App() {
7878
</Router>
7979
);
8080
}
81-
82-
ReactDOM.render(<App />, document.getElementById('app-root'));
81+
const container = document.getElementById('app-root');
82+
const root = createRoot(container);
83+
root.render(<App />);

0 commit comments

Comments
 (0)