Skip to content

Instantly share code, notes, and snippets.

import {action1, action2} from "myActions";
import {bindActionCreators} from "redux";
const mapDispatchToProps(dispatch) => {
return {
manuallyBoundAction : (...args) => dispatch(action1(...args)),
autoBoundAction : bindActionCreators(action2, dispatch),
multipleActionsTogether : bindActionCreators({action1, action2}, dispatch)
}
};
@javidjamae
javidjamae / README.md
Created October 7, 2017 05:05 — forked from matthieuprat/ README.md
Until operator for Enzyme's shallow wrapper

Usage

import until from 'path/to/until'
import { shallow } from 'enzyme'

const EnhancedFoo = compose(
  connect(...),
  withHandlers(...),
 withContext(...)
Verifying my Blockstack ID is secured with the address 1JqirHH1XZHgu6BXnVmYu1jC9Bn5nq3UPz https://explorer.blockstack.org/address/1JqirHH1XZHgu6BXnVmYu1jC9Bn5nq3UPz