File tree Expand file tree Collapse file tree 2 files changed +18
-20
lines changed
reactjsfoundations.com/src Expand file tree Collapse file tree 2 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -48,22 +48,21 @@ function Introduction(props) {
48
48
building applications with it."
49
49
/>
50
50
</ Helmet >
51
- < p >
52
- < blockquote >
53
- < strong >
54
- "It is rare to find it hard to put down a programming book but it is
55
- the case for me with this one. It should be the textbook for any
56
- React course and for anyone learning react."
57
- </ strong >
58
- </ blockquote >
59
- </ p >
60
- < p >
61
- < blockquote style = { { textAlign : 'right' } } >
62
- < a href = "https://www.amazon.com/React-Foundations-Building-Interfaces-ReactJS/product-reviews/1119685540" >
63
- Read More Reviews
64
- </ a >
65
- </ blockquote >
66
- </ p >
51
+
52
+ < blockquote >
53
+ < strong >
54
+ "It is rare to find it hard to put down a programming book but it is
55
+ the case for me with this one. It should be the textbook for any React
56
+ course and for anyone learning react."
57
+ </ strong >
58
+ </ blockquote >
59
+
60
+ < blockquote style = { { textAlign : 'right' } } >
61
+ < a href = "https://www.amazon.com/React-Foundations-Building-Interfaces-ReactJS/product-reviews/1119685540" >
62
+ Read More Reviews
63
+ </ a >
64
+ </ blockquote >
65
+
67
66
< h2 > WHY THIS BOOK?</ h2 >
68
67
< p >
69
68
My aim with this book is to provide an up-to-date and thorough
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 { BrowserRouter as Router } from 'react-router-dom' ;
4
4
import App from './App' ;
5
5
import ScrollToTop from './ScrollToTop' ;
6
6
7
- ReactDOM . render (
7
+ ReactDOM . createRoot ( document . getElementById ( 'root' ) ) . render (
8
8
< Router >
9
9
< ScrollToTop >
10
10
< App />
11
11
</ ScrollToTop >
12
- </ Router > ,
13
- document . getElementById ( 'root' )
12
+ </ Router >
14
13
) ;
You can’t perform that action at this time.
0 commit comments