aboutsummaryrefslogtreecommitdiff
path: root/web/src/main.tsx
blob: 66e73d2fe5b5d40230615140fc2e15a85ef3b906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import '@/styles/index.css';
import App from './App';

const rootElement = document.getElementById('root');

if (!rootElement) {
  throw new Error('Elemento #root não encontrado no DOM. Verifique o index.html.');
}

createRoot(rootElement).render(
  <StrictMode>
    <App />
  </StrictMode>,
);