1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-20 02:00:49 +00:00
strimertul/frontend/src/index.tsx
2022-12-04 18:42:43 +01:00

29 lines
651 B
TypeScript

import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { HashRouter } from 'react-router-dom';
import { StrictMode } from 'react';
import 'inter-ui/inter.css';
import '@fontsource/space-mono/index.css';
import 'normalize.css/normalize.css';
import './locale/setup';
import store from './store';
import App from './ui/App';
import { globalStyles } from './ui/theme';
globalStyles();
const main = document.getElementById('main');
const root = createRoot(main);
root.render(
<Provider store={store}>
<HashRouter>
<StrictMode>
<App />
</StrictMode>
</HashRouter>
</Provider>,
);