import React from 'react'; import {connect} from 'react-redux'; class Actions extends React.Component { constructor(props) { super(props); this.play = this.play.bind(this); this.pause = this.pause.bind(this); this.stop = this.stop.bind(this); } play() { this.props.dispatch({type: 'PLAY'}); } pause() { this.props.dispatch({type: 'PAUSE'}); } stop() { this.props.dispatch({type: 'STOP'}); } render() { return
; } } module.exports = connect(state => state.media)(Actions);