What are the different ways to write mapDispatchToProps()?

Posted by Prem Tiwari | Updated on

What are the different ways to write mapDispatchToProps()?

There are a few ways of binding action creators to dispatch() in mapDispatchToProps().

Below are the possible options:

The third option is just a shorthand for the first one.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers