File tree 3 files changed +52
-56
lines changed
3 files changed +52
-56
lines changed Original file line number Diff line number Diff line change 53
53
"@types/ms" : " 0.7.31" ,
54
54
"@types/node" : " 16.11.27" ,
55
55
"@types/node-fetch" : " 2.6.1" ,
56
- "@types/react" : " 17 .0.44 " ,
57
- "@types/react-dom" : " 17 .0.15 " ,
56
+ "@types/react" : " 18 .0.6 " ,
57
+ "@types/react-dom" : " 18 .0.2 " ,
58
58
"@types/react-helmet" : " 6.1.5" ,
59
59
"@vitejs/plugin-react" : " 1.3.1" ,
60
60
"@wkovacs64/prettier-config" : " 3.0.1" ,
83
83
"prettier" : " 2.6.2" ,
84
84
"prettier-plugin-tailwindcss" : " 0.1.10" ,
85
85
"prop-types" : " 15.8.1" ,
86
- "react" : " 17 .0.2 " ,
87
- "react-dom" : " 17 .0.2 " ,
86
+ "react" : " 18 .0.0 " ,
87
+ "react-dom" : " 18 .0.0 " ,
88
88
"react-helmet" : " 6.1.0" ,
89
89
"react-icons" : " 4.3.1" ,
90
90
"react-router-dom" : " 6.3.0" ,
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
2
+ import { createRoot } from 'react-dom/client ' ;
3
3
import App from './app' ;
4
4
import AppProviders from './app-providers' ;
5
5
6
6
if ( typeof window !== 'undefined' ) {
7
7
import ( './pwa' ) ;
8
8
}
9
9
10
- ReactDOM . render (
10
+ const container = document . getElementById ( 'root' ) ;
11
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
+ const root = createRoot ( container ! ) ;
13
+ root . render (
11
14
< React . StrictMode >
12
15
< AppProviders >
13
16
< App />
14
17
</ AppProviders >
15
18
</ React . StrictMode > ,
16
- document . getElementById ( 'root' ) ,
17
19
) ;
You can’t perform that action at this time.
0 commit comments