Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Go script generated gist.
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