We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2368d80 commit 3167a4fCopy full SHA for 3167a4f
src/index.tsx
@@ -1,5 +1,5 @@
1
import React from "react";
2
-import ReactDOM from "react-dom";
+import ReactDOM from "react-dom/client";
3
import App from '@app/index';
4
5
if (process.env.NODE_ENV !== "production") {
@@ -16,4 +16,10 @@ if (process.env.NODE_ENV !== "production") {
16
axe(React, ReactDOM, 1000, config);
17
}
18
19
-ReactDOM.render(<App />, document.getElementById("root") as HTMLElement);
+const root = ReactDOM.createRoot(document.getElementById("root"));
20
+
21
+root.render(
22
+ <React.StrictMode>
23
+ <App />
24
+ </React.StrictMode>
25
+)
0 commit comments