var HandToBeat = React.createClass({
render: function() {
if (this.props.cards == null || this.props.cards == "") {
return (
Hand to beat:
None
);
} else {
return (
Hand to beat:
{this.props.cards.map(function(card) {
return -
{/* TODO: Don't hard code face cards here */}
{/* {card.rank.replace('11','J').replace('12','Q').replace('13','K').replace('14','A').replace('15','2')} {card.suit} */}
;})}
);
}
}
});