/**
 * Application entry point.
 *
 * Mounts the root `<App />` component into the `#root` DOM element
 * supplied by `index.html`.
 */

import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";

const rootElement = document.getElementById("root");

if (rootElement === null) {
  throw new Error(
    "Root element #root not found. Ensure index.html contains <div id='root'></div>."
  );
}

createRoot(rootElement).render(
  <StrictMode>
    <App />
  </StrictMode>
);
