blob: f8841abc97d619af0c90e4f100668ec103fa5d54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// @flow
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import './global-styles.css';
import '@blueprintjs/core/dist/blueprint.css';
import { configureStore } from './store';
import { Application } from './scenes';
const initialState = {};
const { store, history } = configureStore(initialState);
const rootElement = document.getElementById('root');
if (rootElement) {
ReactDOM.render(<Provider store={store}>
<ConnectedRouter history={history}>
<Application/>
</ConnectedRouter>
</Provider>, rootElement);
} else {
console.error('Element with ID "root" was not found, cannot bootstrap react app');
}
|