index.js 715 Bytes
import React from 'react'
import ReactDOM from 'react-dom'
import Spd from './containers/Spd'
import {
  HashRouter as Router,
  Route
} from 'react-router-dom'

import RegionalDesign from './components/RegionalDesign'

import { applyMiddleware, createStore } from 'redux'
import logger from 'redux-logger'
import { Provider, connect } from 'react-redux'

import rootReducer from './reducers'

const store = createStore(rootReducer, applyMiddleware(logger))

ReactDOM.render(
  <Provider store={store}>
    <Router handler={Spd} history={Router}>
      <Spd>
        <Route path="/web/regional_design/:id" component={RegionalDesign} />
      </Spd>
    </Router>
  </Provider>,
  document.getElementById('root')
);