Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created February 26, 2017 16:57
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/3a7d01f7df11f4b473ceed909eda30b3 to your computer and use it in GitHub Desktop.
Save codeaholicguy/3a7d01f7df11f4b473ceed909eda30b3 to your computer and use it in GitHub Desktop.
import React, {PropTypes, Component} from 'react';
export default class Track extends Component {
static propTypes = {
track: PropTypes.object.isRequired
}
render() {
const {origin: {artwork_url, title}} = this.props.track
return (
<div className='track'>
<img src={artwork_url} />
{title}
<button type='button'>Play</button>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment