Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement