Created
May 28, 2017 18:48
-
-
Save kocisov/866a0e8145f8a681906be3875f204c65 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
class E extends PureComponent { | |
changeText = e => { | |
this.setState({ | |
text: e.target.value | |
}); | |
} | |
render() { | |
return ( | |
<div onClick={this.changeText} /> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment