'use strict'; var React = require('react'); var ReactBootstrap = require('react-bootstrap'); var Duplicate = React.createClass({ render: function () { var ListGroupItem = ReactBootstrap.ListGroupItem; var authors = ""; this.props.track.artists.forEach(function (item, index) { if (index != 0) { authors += ', '; } authors += item.name; }); return ( {this.props.track.name} - {authors} ); } }); module.exports = Duplicate;