bindActionCreators<A, C>(actionCreator, dispatch): C
Turns an object whose values are action creators, into an object with the
same keys, but with every function wrapped into a dispatch call so they
may be invoked directly. This is just a convenience method, as you can call
store.dispatch(MyActionCreators.doSomething()) yourself just fine.
For convenience, you can also pass a single function as the first argument,
and get a function in return.
The object mimicking the original object, but with every action
creator wrapped into the dispatch call. If you passed a function as
actionCreator, the return value will also be a single function.
bindActionCreators<A, B>(actionCreator, dispatch): B
Turns an object whose values are action creators, into an object with the same keys, but with every function wrapped into a
dispatchcall so they may be invoked directly. This is just a convenience method, as you can callstore.dispatch(MyActionCreators.doSomething())yourself just fine.For convenience, you can also pass a single function as the first argument, and get a function in return.