React at Preact

Reflux: Actions

Actions in Flux are a simple place to define the set of possible data-related functions.

Here's a simple example of an EventTypeActions class:


import Reflux from 'reflux';

export default Reflux.createActions({
  load: {},
  delete: {},
  rename: {}


Actions can also have "children" which are typically used for async behaviors.