Handle Actions in Redux with mapDispatchToProps
We need to get our dispatch functions into our components in order to respond to events in Redux. Connect’s second argument is a function called
mapDispatchToProps and it does exactly what the name implies. In this lesson, we’ll use this function to get our dispatch functions into our components via props and refactor to use these functions accordingly.