This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* In redux environment, when we deal with async calls, we cannot use the dispatch to dispatch a | |
* a plain action. An action creator in redux is a pure function which returns | |
* an object with action type (must have) and necessary payload. | |
* See following example. | |
*/ | |
// actions.js | |
// action creator to dispatch an add todo action |