Skip to content

Instantly share code, notes, and snippets.

@andycarrell
Created February 7, 2017 05:05
Show Gist options
  • Save andycarrell/3af7094d8a03a87cd3528432361c9310 to your computer and use it in GitHub Desktop.
Save andycarrell/3af7094d8a03a87cd3528432361c9310 to your computer and use it in GitHub Desktop.
class FormWithSomeCouponInput extends React.Component {
constructor(props) { ... }
handleCouponBlur() {
const { coupon, actions } = this.props;
actions.applyBlur('coupon');
actions.submitCoupon({ coupon });
}
render() { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment