blob: 7622cd52360f977ed22a6871b11732ff2e4773f0 (
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
26
|
import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route } from 'react-router'
import { Provider } from 'react-redux'
import configureStore from './store'
const initialState = {}
const { store, history } = configureStore(initialState)
import './global-styles.css'
import HomePage from './containers/home'
import Error404 from './components/errors/Error404'
ReactDOM.render(
<Provider store={store}>
<Router history={history}>
<div className="app">
<Route path="/" component={HomePage}/>
<Route path="*" component={Error404}/>
</div>
</Router>
</Provider>,
document.getElementById('root')
);
|