Throughout the examples and explanations of Flux architecture -- Facebook's counterpart to React -- action type names are referenced as enum constants rather than strings. (See examples at http://facebook.github.io/flux/) I am just looking for an articulation of why this is the preferred method.
I do not see a benefit in terms of authoring & convenience, because whether you type constants.actionTypes.UPDATE_DATA
(enum constant) or 'UPDATE_DATA'
(string), you have to know and type out the exact name. In fact, sometimes the use of non-strings adds complexity -- e.g. you can't as easily make an object with action types as keys and action handlers as values.
Are the benefits in organization, minification, or something else? I'm curious.