mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update 03-interactivity-and-dynamic-uis.md (#6972)
This commit is contained in:
committed by
Paul O’Shannessy
parent
2da50a0f18
commit
bf0572dde7
@@ -23,7 +23,7 @@ class LikeButton extends React.Component {
|
||||
this.setState({liked: !this.state.liked});
|
||||
}
|
||||
render() {
|
||||
const text = this.state.liked ? 'like' : 'haven\'t liked';
|
||||
const text = this.state.liked ? 'liked' : 'haven\'t liked';
|
||||
return (
|
||||
<div onClick={this.handleClick}>
|
||||
You {text} this. Click to toggle.
|
||||
|
||||
Reference in New Issue
Block a user