MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / bindActionCreator

Function bindActionCreator

code/redux/public/app.js:21178–21182  ·  view source on GitHub ↗
(actionCreator, dispatch)

Source from the content-addressed store, hash-verified

21176exports.__esModule = true;
21177exports['default'] = bindActionCreators;
21178function bindActionCreator(actionCreator, dispatch) {
21179 return function () {
21180 return dispatch(actionCreator.apply(undefined, arguments));
21181 };
21182}
21183
21184/**
21185 * Turns an object whose values are action creators, into an object with the

Callers 1

bindActionCreatorsFunction · 0.85

Calls 1

dispatchFunction · 0.70

Tested by

no test coverage detected