Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import React, {PropTypes, Component} from 'react';
  2.  
  3. export default class Track extends Component {
  4. static propTypes = {
  5. track: PropTypes.object.isRequired
  6. }
  7.  
  8. render() {
  9. const {origin: {artwork_url, title}} = this.props.track
  10. return (
  11. <div className='track'>
  12. <img src={artwork_url} />
  13. {title}
  14. <button type='button'>Play</button>
  15. </div>
  16. )
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement