simple-flux

1.0.0 • Public • Published

Simple Flux

A simple flux implementation inpired by RiotControl.

Installation

npm install --save simple-flux

Quick Example

// mystore.js
import {Store, addStore} from "aflux";
 
const myStore = new Store();
 
myStore.on("my-action-1", ({param1, param2} => {
  console.log("my action 1");
}));
 
myStore.on("my-action-2", ({param1} => {
  console.log("my action 2");
}));
 
addStore(myStore);

Readme

Keywords

Package Sidebar

Install

npm i simple-flux

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sethyuan