1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-19 21:40:33 +09:00
namae/web/src/index.tsx

27 lines
574 B
TypeScript
Raw Normal View History

2019-09-17 14:30:26 +09:00
import React from 'react';
import ReactDOM from 'react-dom';
2019-09-17 14:30:26 +09:00
import App from './App';
import * as serviceWorker from './serviceWorker';
import {FullScreenSuspense} from './util/suspense';
import {initGA, initSentry} from './util/analytics';
import {initCrisp} from './util/crip';
2019-09-17 14:30:26 +09:00
import './util/i18n';
2019-08-03 13:36:29 +09:00
2020-02-05 15:59:53 +09:00
import {BrowserRouter as Router} from 'react-router-dom';
initGA();
2019-09-24 13:55:07 +09:00
initSentry();
initCrisp();
2019-09-24 13:55:07 +09:00
ReactDOM.render(
2019-08-14 18:46:57 +09:00
<FullScreenSuspense>
2020-02-05 15:59:53 +09:00
<Router>
<App />
</Router>
2019-09-24 13:55:07 +09:00
</FullScreenSuspense>,
document.getElementById('root'),
2019-09-17 14:30:26 +09:00
);
2019-08-01 01:10:09 +09:00
2019-09-17 14:30:26 +09:00
serviceWorker.register({});