blob: cf24512fe7ea799e19e0970c1cff6b9ad37bd34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import '~/styles/main.scss';
import './misc/i18n';
import React from 'react';
import { createRoot } from 'react-dom/client';
import Modal from 'react-modal';
import App from './App';
import { registerAppBootstrap } from './app/bootstrap';
import * as swRegistration from './swRegistration';
const rootEl = document.getElementById('app');
if (!rootEl) {
throw new Error('Cannot find #app root element');
}
const root = createRoot(rootEl);
Modal.setAppElement(rootEl);
root.render(<App />);
swRegistration.register();
registerAppBootstrap(rootEl);
|