File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 1- import * as React from 'react' ;
2- import * as ReactDOM from 'react-dom' ;
1+ import { createRoot } from 'react-dom/client' ;
32import 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 /> ) ;
You can’t perform that action at this time.
0 commit comments