Initialize Minabot with Hono and React Router

This commit is contained in:
syntaxbullet
2026-09-04 07:40:35 +02:00
commit 23e9f4c717
18 changed files with 553 additions and 0 deletions

18
src/frontend.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router";
import { App } from "./App";
import "../styles/globals.css";
const container = document.getElementById("root")!;
const root = import.meta.hot
? (import.meta.hot.data.root ??= createRoot(container))
: createRoot(container);
root.render(
<StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</StrictMode>,
);