Last active
April 30, 2018 01:23
-
-
Save iwilsonq/195e7e77b9244eae9d583d8cb310b6c8 to your computer and use it in GitHub Desktop.
A Go script generated gist.
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
handleLike = id => { | |
this.props.likeComment(id, this.props.auth) | |
} | |
handleDislike = id => { | |
this.props.dislikeComment(id, this.props.auth) | |
} | |
renderComments() { | |
return this.props.comments.map((comment, i) => ( | |
<Comment | |
key={i} | |
{...comment} | |
currentUser={this.props.auth} | |
onDislike={this.handleDislike} | |
onLike={this.handleLike} | |
/> | |
)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment