gfs-redux-bind-react
bind react with redux
Usage
the BindReact
component must have properties are module
and reducers
module
is areact
componentreducers
is a describe for action, normally it have afetching
props
the devTools
, middleware
are optional
devTools
to set the react-dev-toolsmiddleware
addreact-redux
middleware for this component
the following is full demo to describe how to use this, the detail please clone the code and run command
$ npm run test
;;;const logger = //判断执行dev环境;
Developer
# test $ npm run test # build $ npm run build # run demo $ npm start