main.tsx

 1import React from "react";
 2import { createRoot } from "react-dom/client";
 3import App from "./App";
 4import { initializeTheme } from "./services/theme";
 5import { initializeFavicon } from "./services/favicon";
 6
 7// Apply theme before render to avoid flash
 8initializeTheme();
 9
10// Initialize dynamic favicon
11initializeFavicon();
12
13// Render main app
14const rootContainer = document.getElementById("root");
15if (!rootContainer) throw new Error("Root container not found");
16
17const root = createRoot(rootContainer);
18root.render(<App />);