Created
January 4, 2019 02:41
-
-
Save CodingItWrong/2d66b4617d38dba5ad61404602aaf263 to your computer and use it in GitHub Desktop.
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
| handleSend = () => { | |
| + const { inputText } = this.state; | |
| + const { onSend } = this.props; | |
| + | |
| + onSend(inputText); | |
| + | |
| this.setState({ inputText: '' }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment