The title explains the questions.
I am using redux to change state of users to active or in-active users.
In matchDispatchToProps:
function matchDispatchToProps(dispatch){
return bindActionCreators({selectUser: selectUser}, dispatch);
}
In case of mapDispatchToProps :
const mapDispatchToProps = (dispatch) => ({
dispatch({selectUser: selectUser})
})
Please explain the difference between these.