File tree 3 files changed +6929
-7304
lines changed 3 files changed +6929
-7304
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"axios" : " ^0.19.0" ,
7
+ "reac" : " ^0.0.0" ,
7
8
"react" : " ^16.8.6" ,
8
- "react-dom" : " ^16.8.6 " ,
9
+ "react-dom" : " ^18.2.0 " ,
9
10
"react-router-dom" : " ^6.2.1" ,
10
- "react-scripts" : " 3 .0.1" ,
11
+ "react-scripts" : " ^5 .0.1" ,
11
12
"styled-components" : " ^4.2.1"
12
13
},
13
14
"scripts" : {
Original file line number Diff line number Diff line change
1
+
2
+ import { BrowserRouter } from 'react-router-dom' ;
1
3
import React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
4
+ import ReactDOM from 'react-dom/client ' ;
3
5
import './index.css' ;
4
6
import App from './App' ;
5
- import * as serviceWorker from './serviceWorker' ;
6
- import { BrowserRouter } from 'react-router-dom' ;
7
7
8
- ReactDOM . render (
8
+ const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ) ;
9
+
10
+ root . render (
9
11
< BrowserRouter >
10
12
< App />
11
13
</ BrowserRouter > ,
12
- document . getElementById ( 'root' ) ,
13
14
) ;
14
15
15
- // If you want your app to work offline and load faster, you can change
16
- // unregister() to register() below. Note this comes with some pitfalls.
17
- // Learn more about service workers: https://bit.ly/CRA-PWA
18
- serviceWorker . unregister ( ) ;
16
+
You can’t perform that action at this time.
0 commit comments