Skip to content

Commit 0e3b2b0

Browse files
committed
upgrading to react18
1 parent 267e217 commit 0e3b2b0

File tree

8 files changed

+23101
-31838
lines changed

8 files changed

+23101
-31838
lines changed

reactjsfoundations.com/package-lock.json

Lines changed: 22839 additions & 31581 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjsfoundations.com/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"axios-hooks": "^2.3.0",
99
"create-react-class": "^15.7.0",
1010
"loggly-jslogger": "^2.2.2",
11-
"react": "^17.0.1",
11+
"react": "^18.0.0",
1212
"react-addons-shallow-compare": "^15.6.2",
1313
"react-collapsible": "^2.8.4",
14-
"react-dom": "^17.0.1",
14+
"react-dom": "^18.0.0",
1515
"react-error-boundary": "^3.1.3",
1616
"react-helmet": "^6.1.0",
1717
"react-hook-form": "^7.12.2",
@@ -20,7 +20,7 @@
2020
"react-responsive": "^9.0.0-beta.5",
2121
"react-router-dom": "5.2.0",
2222
"react-router-sitemap": "^1.2.0",
23-
"react-scripts": "4.0.3",
23+
"react-scripts": "5.0.0",
2424
"react-social-icons": "^5.11.0",
2525
"react-syntax-highlighter": "^15.4.5",
2626
"styled-components": "^5.3.1",

reactjsfoundations.com/src/ScrollToTop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function ScrollToTop({ history, children }) {
99
return () => {
1010
unlisten();
1111
};
12-
}, []);
12+
}, [history]);
1313

1414
return <Fragment>{children}</Fragment>;
1515
}

reactjsfoundations.com/src/WpBlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { QueryClient, QueryClientProvider, useQuery } from 'react-query';
22
import { useState } from 'react';
3-
import * as styles from './WpBlog.module.css';
3+
import styles from './wp-blog.module.css';
44
import { useParams } from 'react-router-dom';
55

66
const queryClient = new QueryClient();

reactjsfoundations.com/src/WpBlogSP.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { QueryClient, QueryClientProvider, useQuery } from 'react-query';
22
import { useState, useEffect } from 'react';
3-
import * as styles from './WpBlog.module.css';
3+
import styles from './wp-blog.module.css';
44
import { useParams } from 'react-router-dom';
55

66
export default function ReactBlog(props) {

reactjsfoundations.com/src/WpBlogWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { QueryClient, QueryClientProvider, useQuery } from 'react-query';
22
import { useState } from 'react';
3-
import * as styles from './WpBlog.module.css';
3+
import styles from './wp-blog.module.css';
44
import { Link } from 'react-router-dom';
55

66
const queryClient = new QueryClient();

0 commit comments

Comments
 (0)