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 3030 "start" : " react-scripts start" ,
3131 "prebuild" : " npm run sitemap" ,
3232 "build" : " react-scripts build" ,
33- "postbuild" : " react-snap" ,
3433 "test" : " react-scripts test" ,
3534 "eject" : " react-scripts eject" ,
3635 "sitemap" : " babel-node ./sitemap-gen.js"
6766 "fs" : " ^0.0.1-security" ,
6867 "path" : " ^0.12.7" ,
6968 "prettier" : " ^2.6.2" ,
70- "react-app-rewired" : " ^2.2.1" ,
71- "react-snap" : " ^1.23.0"
69+ "react-app-rewired" : " ^2.2.1"
7270 }
7371}
Original file line number Diff line number Diff line change 2020 href ="%PUBLIC_URL%/favicon-16x16.png "
2121 />
2222 < link rel ="icon " href ="%PUBLIC_URL%/favicon.ico " />
23- < link rel =" preload " as =" image " href =" /images/cover.webp " />
23+
2424 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
2525 < meta name ="theme-color " content ="#000000 " />
2626 < script
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function Introduction(props) {
4848 everything you need to understand what React is and how to start
4949 building applications with it."
5050 />
51+ < link rel = "preload" as = "image" href = "/images/cover.webp" />
5152 </ Helmet >
5253 < p
5354 style = { {
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { createRoot , hydrateRoot } from 'react-dom/client' ;
2+ import ReactDOM from 'react-dom/client' ;
33import { BrowserRouter as Router } from 'react-router-dom' ;
44import App from './App' ;
55import ScrollToTop from './ScrollToTop' ;
66
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