Sinux
Sinux is a Facebook Flux architecture implementation inspired by signal-as3 and SignalMapCommand extension for Robotlegs. Sinux use co library
Documentation
Visit the book, Sinux, a flux implementation based on signal to see the documentation and examples.
Philosophy behind Sinux
Installation
Sinux is available on NPM
npm i sinux
yarn add sinux
Usage
Since version 0.2.0 Command objects are deprecated. Command are simple javascript function that can return a result or a function (see async below).
Using babel6 with es2015
const store = initialState: true 'action''action2'; storeaction; storeaction foo:'bar' ;// {initialState: true, foo: 'bar'}
Using ES3
var sinux = ; var Store = sinuxStore; var store = initialState: true 'action''action2'; storeaction; storeaction foo:'bar' ;
Asynchronous command
// using generator functionstoreaction; // using Promisestoreaction
Exemple using Sinux with React Native
Here is a simple todo app made with Sinux and React Native. todoStore.load show how to do asynchronous call View source
License
MIT