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:

EventTypeActions.js

import Reflux from 'reflux';

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

Async

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