Skip to content

Instantly share code, notes, and snippets.

@iwilsonq
Last active April 30, 2018 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwilsonq/195e7e77b9244eae9d583d8cb310b6c8 to your computer and use it in GitHub Desktop.
Save iwilsonq/195e7e77b9244eae9d583d8cb310b6c8 to your computer and use it in GitHub Desktop.
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