import { h, Component } from 'preact' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as liveActions from '../live/live.actions' class Button extends Component { constructor(props){ super(props) this.handleClick = this.handleClick.bind(this) } handleClick(e){ this.props.onClick && this.props.onClick() } render() { return (