Fix frontend entrypoint for Vite build

This commit is contained in:
Koha9
2025-11-29 00:25:45 +09:00
parent e5ba790b44
commit 832dbc11d5
21 changed files with 3817 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
const root = ReactDOM.createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);