Skip to content

Commit a9c713b

Browse files
committed
update: updated all the packages to the latest version
1 parent 2887ef3 commit a9c713b

File tree

3 files changed

+4200
-8522
lines changed

3 files changed

+4200
-8522
lines changed

frontend/src/index.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import ReactDOM from "react-dom";
2+
import ReactDOM from "react-dom/client";
33
import { Dapp } from "./components/Dapp";
44

55
// We import bootstrap here, but you can remove if you want
@@ -8,9 +8,10 @@ import "bootstrap/dist/css/bootstrap.css";
88
// This is the entry point of your application, but it just renders the Dapp
99
// react component. All of the logic is contained in it.
1010

11-
ReactDOM.render(
12-
<React.StrictMode>
13-
<Dapp />
14-
</React.StrictMode>,
15-
document.getElementById("root")
11+
const root = ReactDOM.createRoot(document.getElementById("root"));
12+
13+
root.render(
14+
<React.StrictMode>
15+
<Dapp />
16+
</React.StrictMode>
1617
);

0 commit comments

Comments
 (0)