Skip to content

Commit 9bbd0f2

Browse files
authored
Merge pull request #102 from deimianvasquez/main
update react 18
2 parents 176b50f + 33bdc9b commit 9bbd0f2

File tree

3 files changed

+32
-37
lines changed

3 files changed

+32
-37
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"dependencies": {
6060
"prop-types": "^15.7.2",
6161
"query-string": "^7.0.1",
62-
"react": "^17.0.2",
63-
"react-dom": "^17.0.2",
62+
"react": "^18.3.1",
63+
"react-dom": "^18.3.1",
6464
"react-polyfills": "0.0.1",
6565
"react-router": "^6.0.2"
6666
}

src/js/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//import react into the bundle
22
import React from "react";
3-
import ReactDOM from "react-dom";
3+
import ReactDOM from "react-dom/client";
44

55
// include your styles into the webpack bundle
66
import "../styles/index.css";
@@ -9,4 +9,5 @@ import "../styles/index.css";
99
import Home from "./component/home.jsx";
1010

1111
//render your react application
12-
ReactDOM.render(<Home />, document.querySelector("#app"));
12+
ReactDOM.createRoot(document.getElementById('app')).render(<Home/>);
13+

0 commit comments

Comments
 (0)