main.tsx 290 B

123456789101112
  1. import { StrictMode } from 'react';
  2. import { createRoot } from 'react-dom/client';
  3. import App from './App.js';
  4. const rootEl = document.getElementById('root');
  5. if (!rootEl) throw new Error('Root element not found');
  6. createRoot(rootEl).render(
  7. <StrictMode>
  8. <App />
  9. </StrictMode>
  10. );