Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Last active July 18, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeaholicguy/fb3b98d1c92cc30f2ee0ba4c670eb30e to your computer and use it in GitHub Desktop.
Save codeaholicguy/fb3b98d1c92cc30f2ee0ba4c670eb30e to your computer and use it in GitHub Desktop.
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) => {
return <div>Track: {track.title}</div>;
})
}
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment