import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { VitalProvider } from '@vital-ui/react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom'

import App from './App';
import './index.css';
import '@vital-ui/react/src/global.css'
import registerServiceWorker from './registerServiceWorker';
import store from './store';

ReactDOM.render(
  <Router>
    <Provider store={store}>
      <VitalProvider>
        <App />
      </VitalProvider>
    </Provider>
  </Router>,
  document.getElementById('root') as HTMLElement
);
registerServiceWorker();
