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 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 },
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ReactDOM from 'react-dom' ;
2+ import * as ReactDOMClient from 'react-dom/client ' ;
33import 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 /> ) ;
You can’t perform that action at this time.
0 commit comments