Skip to content

Commit

Permalink
Remove mapDispatchToProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ythosa committed Aug 28, 2020
1 parent 1f4ee4f commit e510704
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/counter/counter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'

import * as actions from '../../actions'

Expand All @@ -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)

0 comments on commit e510704

Please sign in to comment.