Sign in Go Pro

React Native with Redux

Simplifying with mapDispatchToProps with Dispatch

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



The second argument to connect is used to dispatch actions to the Redux store. We'll create a mapDispatchToProps function which takes the dispatch function as an argument, and we'll use that to dispatch the add todo action to the store.

Summary of Content:

  • A new mapDispatchToProps function is created and sent to the connect function
  • Use dispatch to dispatch the add todo action to the redux store
  • Simplify mapDispatchToProps with a shorthand syntax




There are no comments on this lesson, start the conversation below ...


Lessons in React Native with Redux