Skip to content

Instantly share code, notes, and snippets.

View codingnninja's full-sized avatar
💭
Working to change the world

Ayobami Ogundiran codingnninja

💭
Working to change the world
View GitHub Profile
'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.';
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);
}