Created
September 8, 2017 06:50
-
-
Save alexkrolick/3f4a0505285b6bbacd2bbbefbffede2a 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 Container extends Component { | |
state = { | |
text: 'foo' | |
} | |
changeText = newText => this.setState({text: newText}) | |
render() { | |
<div> | |
<Presenter1 text={this.state.text} changeText={this.changeText} /> | |
<Presenter2 text={this.state.text} /> | |
<div> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment