refactor(ui): ♻️ use new createRoot

This commit is contained in:
Collin M. Barrett 2022-04-15 13:30:11 -05:00
parent b2bb237d6f
commit a1f5cfe04f

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