var Player = React.createClass({ propTypes: { email: React.PropTypes.string, id: React.PropTypes.number }, render: function() { return (
Player Id: {this.props.id}
Email: {this.props.email}
Inventory count: {this.props.inventory_count}
{/* Show player controls if player is owned by current_user */} {this.props.user_id == this.props.current_user_id ? ( ) : null }
); } });