src/index.js
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Reducers from './reducers'
import App from './components/app'
import { HomePage, DevelopmentsPage, ActivitiesPage, ExperiencesPage } from './components/pages'
const store = createStore(
Reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
)
const history = syncHistoryWithStore(hashHistory, store)
render(
<Provider store={store}>
<div className="full-height">
<Router history={history}>
<Route path="/" component={App}>
<IndexRoute component={HomePage}/>
<Route path="developments" component={DevelopmentsPage}/>
<Route path="experiences" component={ExperiencesPage}/>
<Route path="activity" component={ActivitiesPage}/>
</Route>
</Router>
</div>
</Provider>,
document.getElementById('root')
)
export { history }