10 lines
332 B
TypeScript
10 lines
332 B
TypeScript
import React from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { App } from "./app/App";
|
|
import "./styles.css";
|
|
|
|
const rootElement = document.getElementById("root");
|
|
if (!rootElement) throw new Error("App root element was not found");
|
|
|
|
createRoot(rootElement).render(<React.StrictMode><App /></React.StrictMode>);
|