Skip to content

Commit c9b822c

Browse files
committed
chore(deps): update react monorepo to v18 (major) (#174) (#177)
1 parent 8090c1f commit c9b822c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@
4949
"@kkt/raw-modules": "~7.1.1",
5050
"@kkt/scope-plugin-options": "~7.1.1",
5151
"@types/codemirror": "~5.60.5",
52-
"@types/react": "~17.0.39",
53-
"@types/react-dom": "~17.0.13",
52+
"@types/react": "~18.0.5",
53+
"@types/react-dom": "~18.0.1",
5454
"@uiw/react-github-corners": "~1.5.3",
5555
"@uiw/reset.css": "~1.0.6",
5656
"@wcj/dark-mode": "~1.0.10",
5757
"compile-less-cli": "~1.8.11",
5858
"kkt": "~7.1.5",
5959
"prettier": "~2.5.1",
6060
"pretty-quick": "~3.1.3",
61-
"react": "~17.0.2",
62-
"react-dom": "~17.0.2",
61+
"react": "~18.0.0",
62+
"react-dom": "~18.0.0",
6363
"tsbb": "~3.7.2",
6464
"husky": "~7.0.4"
6565
},

website/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import * as React from 'react';
2-
import * as ReactDOM from 'react-dom';
1+
import { createRoot } from 'react-dom/client';
32
import App from './App';
43

5-
ReactDOM.render(
6-
<App />,
7-
document.getElementById('root') as HTMLElement
8-
);
4+
const container = document.getElementById('root');
5+
const root = createRoot(container!);
6+
root.render(<App />);

0 commit comments

Comments
 (0)