etesync/src/index.tsx

23 lines
634 B
TypeScript
Raw Normal View History

// SPDX-FileCopyrightText: © 2017 EteSync Authors
// SPDX-License-Identifier: AGPL-3.0-only
2017-11-30 11:06:15 +00:00
import * as React from 'react';
import * as ReactDOM from 'react-dom';
2017-12-05 13:09:54 +00:00
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/es/integration/react';
2017-11-30 11:06:15 +00:00
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
2017-12-05 13:09:54 +00:00
import { store, persistor } from './store';
2017-11-30 11:06:15 +00:00
ReactDOM.render(
2017-12-05 13:09:54 +00:00
<Provider store={store}>
<PersistGate persistor={persistor}>
<App />
</PersistGate>
</Provider>,
2017-11-30 11:06:15 +00:00
document.getElementById('root') as HTMLElement
);
registerServiceWorker();