API

Flummox has three exports:

If you’re using ES6 module syntax:

import { Flux } from 'flummox';

Or multiple classes at once:

import { Flux, Store, Actions } from 'flummox';

Addons

Flummox also comes with some addons. These are not part of the main export. That way, if you don’t use them, they won’t increase the size of your bundle.

Refer to the React integration guide for details.

import fluxMixin from 'flummox/mixin';
import FluxComponent from 'flummox/component';
import connectToStores from 'flummox/connect';