How to get simple dispatch from this.props using connect w/ Redux?
By default mapDispatchToProps is just dispatch => ({ dispatch }). So if you don’t specify the second argument to connect(), you’ll get dispatch injected as a prop in your component. If you pass a custom function to mapDispatchToProps, you can do anything with the function. A few examples: // inject onClick function mapDispatchToProps(dispatch) { return … Read more