File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
federated-css/expose-remotes Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import App from './App' ;
2
2
import React from 'react' ;
3
- import ReactDOM from 'react-dom' ;
3
+ import { createRoot } from 'react-dom/client ' ;
4
4
5
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
5
+ const container = document . getElementById ( 'root' ) ;
6
+ const root = createRoot ( container ) ;
7
+ root . render ( < App /> ) ;
Original file line number Diff line number Diff line change 1
1
import App from './App' ;
2
2
import React from 'react' ;
3
- import ReactDOM from 'react-dom' ;
3
+ import { createRoot } from 'react-dom/client ' ;
4
4
5
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
5
+ const container = document . getElementById ( 'root' ) ;
6
+ const root = createRoot ( container ) ;
7
+ root . render ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments