index.js 1019 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 { Provider, connect } from 'react-redux'

import rootReducer from './reducers'

import createSagaMiddleware from 'redux-saga'

import rootSaga from './sagas/root'

import configureStore from './store/configureStore'

const sagaMiddleware = createSagaMiddleware()

const store = configureStore()

// const store = createStore(rootReducer, applyMiddleware(sagaMiddleware, logger), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())

store.runSaga(rootSaga)

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')
);