Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +----------+
- | Top Comp | state: { text: "" }
- +----------+
- |
- | +--------------+
- +---------| Display Comp | <label>{ this.state.text }</label>
- | +--------------+
- |
- +----------+
- | Button | onClick() => this.setState({ text: "Your text"))
- +----------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement