This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Full Proof of Concept here http://jsbin.com/hupejawequ/1/edit?html,css,js,output | |
@requireConfirmation(["pay"]) // only request confirmation for the 'pay' method | |
class FormWithButton extends React.Component { | |
constructor() { | |
super(); | |
// We have to bind, () => {} doesnt work | |
this.pay = this.pay.bind(this); | |
this.request = this.request.bind(this); |
NewerOlder