File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
tasks :
3
- - init : yarn install && yarn run builds
3
+ - init : yarn install && yarn run build
4
4
5
5
vscode :
6
6
extensions :
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 ReactDOM from 'react-dom/client ' ;
3
3
import './example.less' ;
4
4
import SuperMario from './components/examples/SuperMario' ;
5
5
import MattGroening from './components/examples/MattGroening' ;
6
6
import Avengers from './components/examples/Avengers' ;
7
7
import RightToLeft from './components/examples/RightToLeft' ;
8
8
9
- ReactDOM . render (
9
+ const root = ReactDOM . createRoot ( document . getElementById ( 'example' ) ) ;
10
+
11
+ root . render (
10
12
< div >
11
13
< SuperMario />
12
14
< MattGroening />
13
15
< Avengers />
14
16
< RightToLeft />
15
17
</ div > ,
16
- document . getElementById ( 'example' ) ,
17
18
) ;
You can’t perform that action at this time.
0 commit comments