This file contains 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
'use strict'; | |
const e = React.createElement; | |
class FollowButton extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { follow: false }; | |
} | |
render() { | |
if (this.state.follow) { | |
return 'You are following this.'; |
This file contains 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 Vote extends React.Component { | |
constructor(){ | |
super(); | |
this.state = { | |
message: "Click on an image to vote" | |
}; | |
this.voteForBuhari = this.voteForBuhari.bind(this); | |
this.voteForFela = this.voteForFela.bind(this); | |
this.voteForSowore = this.voteForSowore.bind(this); | |
} |
NewerOlder