File tree 1 file changed +19
-8
lines changed
1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
1
+ // import React from 'react';
2
+ // import ReactDOM from 'react-dom/client ';
3
3
import './index.css' ;
4
4
import App from './App' ;
5
5
import reportWebVitals from './reportWebVitals' ;
6
6
7
- ReactDOM . render (
8
- < React . StrictMode >
9
- < App />
10
- </ React . StrictMode > ,
11
- document . getElementById ( 'root' )
12
- ) ;
7
+ import { createRoot } from 'react-dom/client' ;
8
+ const container = document . getElementById ( 'root' ) ;
9
+ const root = createRoot ( container ) ;
10
+ root . render ( < App /> ) ;
11
+
12
+ // ReactDOM.render(
13
+ // <React.StrictMode>
14
+ // <App />
15
+ // </React.StrictMode>,
16
+ // document.getElementById('root')
17
+ // );
18
+
19
+ // root.render(
20
+ // <React.StrictMode>
21
+ // <App />
22
+ // </React.StrictMode>
23
+ // );
13
24
14
25
// If you want to start measuring performance in your app, pass a function
15
26
// to log results (for example: reportWebVitals(console.log))
You can’t perform that action at this time.
0 commit comments