File tree Expand file tree Collapse file tree 6 files changed +12212
-13853
lines changed Expand file tree Collapse file tree 6 files changed +12212
-13853
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"classnames" : " ^2.2.6" ,
7
- "react" : " ^17.0.2 " ,
8
- "react-dom" : " ^17.0.2 " ,
7
+ "react" : " ^18.2.0 " ,
8
+ "react-dom" : " ^18.2.0 " ,
9
9
"react-icons" : " ^3.7.0" ,
10
- "react-scripts" : " ^4 .0.3 " ,
10
+ "react-scripts" : " ^5 .0.1 " ,
11
11
"react-virtualized" : " ^9.21.1" ,
12
- "sass" : " ^1.37.5 "
12
+ "sass" : " ^1.62.0 "
13
13
},
14
14
"scripts" : {
15
15
"start" : " react-scripts start" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
2
+ import ReactDOM from 'react-dom/client ' ;
3
3
import './index.css' ;
4
4
import App from './App' ;
5
- import * as serviceWorker from './serviceWorker' ;
6
5
7
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
6
+ const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ) ;
8
7
9
- // If you want your app to work offline and load faster, you can change
10
- // unregister() to register() below. Note this comes with some pitfalls.
11
- // Learn more about service workers: https://bit.ly/CRA-PWA
12
- serviceWorker . unregister ( ) ;
8
+ root . render (
9
+ < React . StrictMode >
10
+ < App />
11
+ </ React . StrictMode >
12
+ ) ;
You can’t perform that action at this time.
0 commit comments