https://github.com/morlay/reflux-riot
reflux fork for riot
https://github.com/morlay/reflux-riot
Last synced: 11 months ago
JSON representation
reflux fork for riot
- Host: GitHub
- URL: https://github.com/morlay/reflux-riot
- Owner: morlay
- Created: 2015-07-29T03:15:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T05:43:46.000Z (almost 11 years ago)
- Last Synced: 2025-02-08T18:03:45.223Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reflux-riot
reflux mixins for [riot](https://github.com/riot/riot)
all method as [reflux](https://github.com/reflux/refluxjs),
but for now only let `Reflux.listenTo` work
# usages in riot
`npm i reflux-riot -S`
``` js
import riot from 'riot'
import reflux from 'reflux-riot'
import Store from './path/to/Store'
riot.tag(
'some-component',
'
',
function(){
this.mixin(reflux.listenTo(Store, 'onStoreUpdate'));
this.onStoreUpdate = ()=>{
this.update()
}
});
```