Fix lint issue

This commit is contained in:
Manav Rathi 2024-04-04 14:15:42 +05:30
parent 935e47fbca
commit 712b99b8f3
No known key found for this signature in database

View file

@ -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>,