aethex-forge/client/main.tsx
Builder.io cd32b1bfd3 Add error boundary to main entry point
cgen-bb18b38c162a4f6899cb2cc5909bd6df
2025-08-06 02:24:18 +00:00

18 lines
420 B
TypeScript

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import ErrorBoundary from './components/ErrorBoundary';
const container = document.getElementById('root');
if (!container) {
throw new Error('Root element not found');
}
const root = createRoot(container);
root.render(
<StrictMode>
<ErrorBoundary>
<App />
</ErrorBoundary>
</StrictMode>
);