npm install reactive-stativus
|1|| downloads in the last week|
|2|| downloads in the last month|
Add reactivity to Stativus
# add reactivity to Stativus
rs = require 'reactive-stativus'
# pass in the global Stativus object
# create your statecharts as usual
sc = Stativus.createStatechart()
# hey look. Stativus grew a new method!
sc.in('my_state') # true
# and guess what. It is reactive!
reactivity.subscribe ( -> sc.in('my_state') ), (e, r) -> console.log e, r
Bonus feature: Use coffeescript to configure your statecharts
# TODO. docs
# see tests for now