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 11
22tasks :
3- - init : yarn install && yarn run builds
3+ - init : yarn install && yarn run build
44
55vscode :
66 extensions :
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ReactDOM from 'react-dom' ;
2+ import * as ReactDOM from 'react-dom/client ' ;
33import './example.less' ;
44import SuperMario from './components/examples/SuperMario' ;
55import MattGroening from './components/examples/MattGroening' ;
66import Avengers from './components/examples/Avengers' ;
77import RightToLeft from './components/examples/RightToLeft' ;
88
9- ReactDOM . render (
9+ const root = ReactDOM . createRoot ( document . getElementById ( 'example' ) ) ;
10+
11+ root . render (
1012 < div >
1113 < SuperMario />
1214 < MattGroening />
1315 < Avengers />
1416 < RightToLeft />
1517 </ div > ,
16- document . getElementById ( 'example' ) ,
1718) ;
You can’t perform that action at this time.
0 commit comments