Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3029,6 +3029,16 @@
}
}
```

Recommend always using the “object shorthand” form for the `mapDispatchToProps`

Redux wrap it in another function that looks like (…args) => dispatch(onTodoClick(…args)), and pass that wrapper function as a prop to your component.

```javascript
const mapDispatchToProps = ({
onTodoClick
})
```

157. ### Can I dispatch an action in reducer?

Expand Down