File tree Expand file tree Collapse file tree 5 files changed +37
-597
lines changed Expand file tree Collapse file tree 5 files changed +37
-597
lines changed Original file line number Diff line number Diff line change 30
30
"start" : " react-scripts start" ,
31
31
"prebuild" : " npm run sitemap" ,
32
32
"build" : " react-scripts build" ,
33
- "postbuild" : " react-snap" ,
34
33
"test" : " react-scripts test" ,
35
34
"eject" : " react-scripts eject" ,
36
35
"sitemap" : " babel-node ./sitemap-gen.js"
67
66
"fs" : " ^0.0.1-security" ,
68
67
"path" : " ^0.12.7" ,
69
68
"prettier" : " ^2.6.2" ,
70
- "react-app-rewired" : " ^2.2.1" ,
71
- "react-snap" : " ^1.23.0"
69
+ "react-app-rewired" : " ^2.2.1"
72
70
}
73
71
}
Original file line number Diff line number Diff line change 20
20
href ="%PUBLIC_URL%/favicon-16x16.png "
21
21
/>
22
22
< link rel ="icon " href ="%PUBLIC_URL%/favicon.ico " />
23
- < link rel =" preload " as =" image " href =" /images/cover.webp " />
23
+
24
24
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
25
25
< meta name ="theme-color " content ="#000000 " />
26
26
< script
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function Introduction(props) {
48
48
everything you need to understand what React is and how to start
49
49
building applications with it."
50
50
/>
51
+ < link rel = "preload" as = "image" href = "/images/cover.webp" />
51
52
</ Helmet >
52
53
< p
53
54
style = { {
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { createRoot , hydrateRoot } from 'react-dom/client' ;
2
+ import ReactDOM from 'react-dom/client' ;
3
3
import { BrowserRouter as Router } from 'react-router-dom' ;
4
4
import App from './App' ;
5
5
import ScrollToTop from './ScrollToTop' ;
6
6
7
- const container = document . getElementById ( 'root' ) ;
8
-
9
- if ( container . hasChildNodes ( ) ) {
10
- hydrateRoot (
11
- container ,
12
- < Router >
13
- < ScrollToTop >
14
- < App />
15
- </ ScrollToTop >
16
- </ Router >
17
- ) ;
18
- } else {
19
- createRoot ( container ) . render (
20
- < Router >
21
- < ScrollToTop >
22
- < App />
23
- </ ScrollToTop >
24
- </ Router >
25
- ) ;
26
- }
7
+ ReactDOM . createRoot ( document . getElementById ( 'root' ) ) . render (
8
+ < Router >
9
+ < ScrollToTop >
10
+ < App />
11
+ </ ScrollToTop >
12
+ </ Router >
13
+ ) ;
You can’t perform that action at this time.
0 commit comments