17 lines
324 B
TypeScript
17 lines
324 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import "./styles/index.css";
|
|
import App from "./App";
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
if (!root) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
ReactDOM.createRoot(root).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
);
|