18 lines
320 B
TypeScript
18 lines
320 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
|
|
import { App } from "./app/App";
|
|
import "./index.css";
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
if (!root) {
|
|
throw new Error("Missing #root element");
|
|
}
|
|
|
|
ReactDOM.createRoot(root).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
);
|