diff --git a/src/components/counter/counter.js b/src/components/counter/counter.js index 81c17d8..eb5c474 100644 --- a/src/components/counter/counter.js +++ b/src/components/counter/counter.js @@ -1,6 +1,5 @@ import React from 'react' import { connect } from 'react-redux' -import { bindActionCreators } from 'redux' import * as actions from '../../actions' @@ -27,8 +26,4 @@ const mapStateToProps = (state) => { } } -const mapDispatchToProps = (dispatch) => { - return bindActionCreators(actions, dispatch) -} - -export default connect(mapStateToProps, mapDispatchToProps)(Counter) +export default connect(mapStateToProps, actions)(Counter)