index.js 1.01 KB
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 { helloSaga } from './sagas/header'

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(helloSaga)

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