import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { AlbumRow } from "./Album"; import css from "../styles/Artist.scss"; class ArtistCSS extends Component { render () { var albumsRows = []; if (Array.isArray(this.props.artist.albums)) { this.props.artist.albums.forEach(function (item) { albumsRows.push(); }); } return (

{this.props.artist.name}


{this.props.artist.summary}

{this.props.artist.name}/

{ albumsRows }
); } } ArtistCSS.propTypes = { artist: PropTypes.object.isRequired }; export default CSSModules(ArtistCSS, css);