react-redux-with-path
Version:
A version of react-redux designed for cases that want to access sub-tree of the state. and take it as state in mapStateToProps and mapDispatchToProps
18 lines (13 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = wrapActionCreators;
var _bindActionCreators = require('./bindActionCreators');
var _bindActionCreators2 = _interopRequireDefault(_bindActionCreators);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function wrapActionCreators(actionCreators, path) {
return function (dispatch) {
return (0, _bindActionCreators2.default)(actionCreators, dispatch, path);
};
}