17 lines
389 B
TypeScript
17 lines
389 B
TypeScript
|
|
import { StrictMode } from 'react';
|
|||
|
|
import { createRoot } from 'react-dom/client';
|
|||
|
|
import App from './App';
|
|||
|
|
import './styles/tokens.css';
|
|||
|
|
import './styles/app.css';
|
|||
|
|
|
|||
|
|
const container = document.getElementById('root');
|
|||
|
|
if (container === null) {
|
|||
|
|
throw new Error('#root nicht gefunden – index.html prüfen');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
createRoot(container).render(
|
|||
|
|
<StrictMode>
|
|||
|
|
<App />
|
|||
|
|
</StrictMode>,
|
|||
|
|
);
|