Revert "Revert "refactor(ui): ♻️ use new createRoot""

This reverts commit 77c53b0b3f.
This commit is contained in:
Collin M. Barrett 2022-04-23 12:39:33 -05:00
parent a1318b2c62
commit eb5c176616

View file

@ -1,14 +1,16 @@
import React from "react";
import ReactDOM from "react-dom";
import { App } from "./App";
import ReactDOM from "react-dom/client";
import "./index.css";
import { App } from "./App";
import reportWebVitals from "./reportWebVitals";
ReactDOM.render(
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function