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
// | |
// ============================================================================ | |
// | |
// Quick sketch / rough idea of a redux store/state/action/reducer pattern. | |
// | |
// This works differently to ReduxJS, in that the reducer does not implement a | |
// switch statement for the action, but instead uses a double-dispatch | |
// functional call from the action to a factory that produces the redicer. | |
//. The store also has methods for each action type. | |
// |
NewerOlder