Created
September 3, 2016 17:55
-
-
Save codeaholicguy/31475338030ad597553f443efe7db5c4 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
import React, {Component, PropTypes} from 'react'; | |
export default class TrackList extends Component { | |
static propTypes = { | |
tracks: PropTypes.array | |
} | |
static defaultProps = { | |
tracks: [] | |
} | |
render() { | |
return ( | |
<div> | |
{ | |
this.props.tracks.map((track, key) => { | |
return <div key={key}>Track: {track.title}</div>; | |
}) | |
} | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment