summaryrefslogtreecommitdiff
path: root/frontend/src/index.js
blob: 235f3a0b8c7ba5b5656d5beb32164fe09af90fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// @flow
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { ConnectedRouter } from 'react-router-redux';
import { Provider } from 'react-redux';
import './global-styles.css';
import '@blueprintjs/core/dist/blueprint.css';

import configureStore from './store';
import Routes from './scenes';
const initialState = {};
const { store, history } = configureStore(initialState);

ReactDOM.render(
  <Provider store={store}>
    <ConnectedRouter history={history}>
      <Routes />
    </ConnectedRouter>
  </Provider>,
  document.getElementById('root')
);
bgstack15