bind redux action to group, avoid action generate function name conflict, and compatibility redux bindActionCreators
install
npm i -S redux-bind-action-groups
example
my two action creator files
// post.js{ return type: 'POST_GETLIST' } // photo.js{ return type: 'PHOTO_GETLIST' }
bind action creator with redux bindActionCreators
;;; { return } // in React Componentthisprops; // which getList will exec in post and photo
useage
; { return } // in React Component, work finethispropspost;thispropsphoto;thisprops