What is mapDispatchToProps?
I was reading the documentation for the Redux library and it has this example:
I was reading the documentation for the Redux library and it has this example:
If mapStateToProps
argument is specified, the new component will
subscribe to Redux store updates. This means that any time the store
is updated, mapStateToProps
will be called. The results of
mapStateToProps
must be a plain object, which will be merged into
the component’s props.