reflux-riot
v0.0.1 reflux riot
reflux-riot
reflux addon for riot
all method as reflux,
but for now only let Reflux.listenTo
work
usages in riot
npm i riot-reflux -S
import riot from 'riot'
import reflux from 'reflux-riot'
import Store from './path/to/Store'
riot.tag(
'some-component',
'<div></div>',
function(){
this.mixin(reflux.listenTo(Store, 'onStoreUpdate'));
this.onStoreUpdate = ()=>{
this.update()
}
});