Reduce boilerplate in Redux
- Create actions similar to Flummox.
- Generate action ids.
- Supports actions with promises, and therefore ES7 async.
Redux is super lightweight...so it may be useful to add some helper utils on top of it to reduce some boilerplate. The goal of Redux is to keep these things in user-land, and so most likely these helpers (or anything like them) wouldn't make it into core.
It's important to note that this is just ONE (and not particularly thoroughly tested) way to accomplish the goal of reducing boilerplate in Redux. It borrows some ideas from Flummox and the way it generates action creator constants.
This will evolve, I'm sure, as time goes on and as Redux's API changes.
Some helper functions to reduce some boilerplate in Redux:
import _ from 'lodash';
|* @fileoverview Externs for backbone-0.9.1.js|
|* built with http://www.dotnetwise.com/Code/Externs/index.html|
|* see also: http://blog.dotnetwise.com/2009/11/closure-compiler-externs-extractor.html|
|* via: http://code.google.com/p/closure-compiler/wiki/FAQ#How_do_I_write_an_externs_file?|
|* Note: when building via that page, you first need to load in underscrore.js, as that's a dependency.|
|* also, after running the extern for Backbone, you need to manually run it for:|