Skip to content

Commit c9a38ca

Browse files
committed
upgraded to react 18
1 parent 2c601f3 commit c9a38ca

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

reactjsfoundations.com/src/Introduction.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,21 @@ function Introduction(props) {
4848
building applications with it."
4949
/>
5050
</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+
6766
<h2>WHY THIS BOOK?</h2>
6867
<p>
6968
My aim with this book is to provide an up-to-date and thorough

reactjsfoundations.com/src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import ReactDOM from 'react-dom/client';
33
import { BrowserRouter as Router } from 'react-router-dom';
44
import App from './App';
55
import ScrollToTop from './ScrollToTop';
66

7-
ReactDOM.render(
7+
ReactDOM.createRoot(document.getElementById('root')).render(
88
<Router>
99
<ScrollToTop>
1010
<App />
1111
</ScrollToTop>
12-
</Router>,
13-
document.getElementById('root')
12+
</Router>
1413
);

0 commit comments

Comments
 (0)