import React, {Component} from 'react' import { connect } from 'react-redux' import { incrementCount, decrementCount, resetCount } from '../store' class Counter extends Component { increment = () => { const {dispatch} = this.props dispatch(incrementCount()) } decrement = () => { const {dispatch} = this.props dispatch(decrementCount()) } reset = () => { const {dispatch} = this.props dispatch(resetCount()) } render () { const { count } = this.props return (