Loto / src /index.tsx
Raí Santos
oi
4c1e4ec
raw
history blame contribute delete
514 Bytes
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import ErrorBoundary from './components/ErrorBoundary';
import { conditionalPreload } from './utils/lazyComponents';
// Precarregar componentes críticos baseado na conexão
conditionalPreload();
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<ErrorBoundary>
<App />
</ErrorBoundary>
</React.StrictMode>
);