File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 40
40
"@kkt/less-modules" : " ^7.4.9" ,
41
41
"@kkt/raw-modules" : " ^7.4.9" ,
42
42
"@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 " ,
45
45
"@uiw/react-github-corners" : " ~1.5.3" ,
46
46
"@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 " ,
49
49
"kkt" : " ^7.4.9" ,
50
50
"tsbb" : " ^4.1.4"
51
51
},
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
2
+ import * as ReactDOMClient from 'react-dom/client ' ;
3
3
import App from './App' ;
4
4
5
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
5
+ const container = document . getElementById ( 'root' ) ;
6
+ const root = ReactDOMClient . createRoot ( container ! ) ;
7
+ root . render ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments