Skip to content

Instantly share code, notes, and snippets.

View lukevanin's full-sized avatar

Luke Van In lukevanin

View GitHub Profile
//
// ============================================================================
//
// 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.
//