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
Autoplay

Up next

Previous

About

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

Instructor

Links

Comments

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

>
You need to go PRO to post comments.

Lessons in React Native with Redux