Skip to content

Commit 89193eb

Browse files
committed
chore(deps): update react monorepo to v18 (major) #40
1 parent 61f5650 commit 89193eb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
"@kkt/less-modules": "^7.4.9",
4141
"@kkt/raw-modules": "^7.4.9",
4242
"@kkt/scope-plugin-options": "^7.4.9",
43-
"@types/react": "~17.0.39",
44-
"@types/react-dom": "~17.0.13",
43+
"@types/react": "^18.0.33",
44+
"@types/react-dom": "^18.0.11",
4545
"@uiw/react-github-corners": "~1.5.3",
4646
"@uiw/react-markdown-preview": "~3.5.1",
47-
"react": "~17.0.2",
48-
"react-dom": "~17.0.2",
47+
"react": "^18.2.0",
48+
"react-dom": "^18.2.0",
4949
"kkt": "^7.4.9",
5050
"tsbb": "^4.1.4"
5151
},

website/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import * as ReactDOMClient from 'react-dom/client';
33
import App from './App';
44

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

0 commit comments

Comments
 (0)