Fix lint issue
This commit is contained in:
parent
935e47fbca
commit
712b99b8f3
1 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,10 @@ import ReactDOM from "react-dom/client";
|
|||
import { App } from "./App";
|
||||
import "./styles/globals.css";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
const root = document.getElementById("root");
|
||||
if (!root) throw new Error("Could not load root element to render onto");
|
||||
|
||||
ReactDOM.createRoot(root).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
|
|
Loading…
Add table
Reference in a new issue