Commit 328e72f1 by hfpp2012 yinsigan

add redux-logger

1 parent 413e98bb
......@@ -22,6 +22,7 @@
"react-redux": "^5.0.5",
"react-router-dom": "^4.1.1",
"redux": "^3.6.0",
"redux-logger": "^3.0.6",
"webpack": "^2.5.1",
"webpack-dev-server": "^2.4.5"
},
......
......@@ -8,12 +8,13 @@ import {
import RegionalDesign from './components/RegionalDesign'
import { createStore } from 'redux'
import { applyMiddleware, createStore } from 'redux'
import logger from 'redux-logger'
import { Provider, connect } from 'react-redux'
import rootReducer from './reducers'
const store = createStore(rootReducer)
const store = createStore(rootReducer, applyMiddleware(logger))
ReactDOM.render(
<Provider store={store}>
......
......@@ -1651,6 +1651,10 @@ decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
version "1.2.0"
resolved "http://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
deep-diff@^0.3.5:
version "0.3.8"
resolved "http://registry.npm.taobao.org/deep-diff/download/deep-diff-0.3.8.tgz#c01de63efb0eec9798801d40c7e0dae25b582c84"
deep-extend@~0.4.0:
version "0.4.2"
resolved "http://registry.npm.taobao.org/deep-extend/download/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f"
......@@ -4331,6 +4335,12 @@ reduce-function-call@^1.0.1:
dependencies:
balanced-match "^0.4.2"
redux-logger@^3.0.6:
version "3.0.6"
resolved "http://registry.npm.taobao.org/redux-logger/download/redux-logger-3.0.6.tgz#f7555966f3098f3c88604c449cf0baf5778274bf"
dependencies:
deep-diff "^0.3.5"
redux@^3.6.0:
version "3.6.0"
resolved "http://registry.npm.taobao.org/redux/download/redux-3.6.0.tgz#887c2b3d0b9bd86eca2be70571c27654c19e188d"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!