Created
February 19, 2016 03:16
-
-
Save Jtmaca9/132c6782a471240db169 to your computer and use it in GitHub Desktop.
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
var check = (props.chosenWord==vote.word); | |
return votes.map(function(vote) { | |
return <a className={classNames('btn', { btn-success: check},{btn-primary: !check})} key={vote.id} onClick={onclick}> {vote.word} <span className="badge">{vote.count}</span> </a> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment