We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19f801d + 1e25863 commit f4684acCopy full SHA for f4684ac
1 file changed
src/index.js
@@ -3,8 +3,10 @@
3
*/
4
5
import React from "react";
6
-import { render } from "react-dom";
+import { createRoot } from "react-dom/client";
7
8
import App from "./App";
9
10
-render(<App></App>, document.getElementById("app"));
+const container = document.getElementById("app");
11
+const root = createRoot(container);
12
+root.render(<App />);
0 commit comments