/** * This file is the entry point for the React app, it sets up the root * element and renders the App component to the DOM. * * It is included in `view/index.html`. */ import { createImageStudioApp } from "@app/app"; import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import { App } from "./App"; const elem = document.getElementById("root")!; const imageStudioApp = createImageStudioApp(); const app = ( ); // https://bun.com/docs/bundler/hot-reloading#import-meta-hot-data (import.meta.hot.data.root ??= createRoot(elem)).render(app);