orchidmap-front/src/index.tsx
2021-04-08 11:21:13 +07:00

24 lines
623 B
TypeScript

import React from 'react';
import ReactDOM from 'react-dom';
import { App } from '~/containers/App';
import '~/styles/_main.scss';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { configureStore } from '~/redux/store';
import { pushLoaderState } from '~/utils/history';
const { store, persistor } = configureStore();
pushLoaderState(10);
const Index = () => (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<App />
</PersistGate>
</Provider>
);
ReactDOM.render(<Index />, document.getElementById('index'));