Created
August 15, 2016 18:04
-
-
Save cmilfont/cb8afa7285b2b38a7d05210fe132b721 to your computer and use it in GitHub Desktop.
Fat Arrow Functions
This file contains 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
class Form extends React.Component { | |
handleCreate = () => { | |
const { dispatch, actions } = this.props; | |
const type = actions.CREATE; | |
const payload = this.state; | |
dispatch({ type, payload }); | |
this.handleClose(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment