We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2887ef3 commit a9c713bCopy full SHA for a9c713b
frontend/src/index.js
@@ -1,5 +1,5 @@
1
import React from "react";
2
-import ReactDOM from "react-dom";
+import ReactDOM from "react-dom/client";
3
import { Dapp } from "./components/Dapp";
4
5
// We import bootstrap here, but you can remove if you want
@@ -8,9 +8,10 @@ import "bootstrap/dist/css/bootstrap.css";
8
// This is the entry point of your application, but it just renders the Dapp
9
// react component. All of the logic is contained in it.
10
11
-ReactDOM.render(
12
- <React.StrictMode>
13
- <Dapp />
14
- </React.StrictMode>,
15
- document.getElementById("root")
+const root = ReactDOM.createRoot(document.getElementById("root"));
+
+root.render(
+ <React.StrictMode>
+ <Dapp />
16
+ </React.StrictMode>
17
);
0 commit comments