Files
firegex-traffic-viewer/frontend/src/index.tsx
2022-06-27 09:31:39 +02:00

21 lines
616 B
TypeScript
Executable File

import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from "react-router-dom"
import './index.scss';
import App from './App';
import { MantineProvider } from '@mantine/core';
import { NotificationsProvider } from '@mantine/notifications';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<MantineProvider theme={{ colorScheme: 'dark' }} withGlobalStyles withNormalizeCSS>
<NotificationsProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</NotificationsProvider>
</MantineProvider>
);