🌠 Vite is Gone!

This commit is contained in:
암냥 2025-02-22 21:27:50 +09:00
commit 3f1b62edf4
43 changed files with 1360 additions and 4482 deletions

31
src/frontend.tsx Normal file
View file

@ -0,0 +1,31 @@
/**
* 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 `src/index.html`.
*/
import { createRoot } from "react-dom/client";
import { StrictMode } from "react";
import { App } from "./App";
import { ThemeProvider } from "@/components/theme-provider";
import BottomBar from "./components/BottomBar";
const elem = document.getElementById("root")!;
const app = (
<StrictMode>
<ThemeProvider storageKey="bun-ui-theme">
<BottomBar />
<App />
</ThemeProvider>
</StrictMode>
);
if (import.meta.hot) {
// With hot module reloading, `import.meta.hot.data` is persisted.
const root = (import.meta.hot.data.root ??= createRoot(elem));
root.render(app);
} else {
// The hot module reloading API is not available in production.
createRoot(elem).render(app);
}