1×
Become a member
to unlock all features
Autoplay

    Handle Actions in Redux with mapDispatchToProps

    reactReact
    15 - 16
    reduxRedux
    3 - 4

    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.