Hmmm, I am using mapStateToProps and bindActionCreators:
Joe Privett
1

Yes I do speak about bindActionCreators in the article:

“The second thing is binding the action creators to dispatch. Without this binding firing an action creator will do nothing. Now mapDispatchToProps is not the only way of bind dispatch and action creators, there is another way called bindActionCreators.

import { bindActionCreators } from 'redux';
import * as TodoActionCreators from './TodoActionCreators';
let boundActionCreators = bindActionCreators(TodoActionCreators, dispatch)

This is the least common way of binding as stated from Redux:

The only use case for bindActionCreators is when you want to pass some action creators down to a component that isn't aware of Redux, and you don't want to pass dispatch or the Redux store to it.”
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.