Last active
October 8, 2015 08:18
-
-
Save takashi/65f4bdaaf2c1ecddb80f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Rx} from '@cycle/core'; | |
| import {h} from '@cycle/dom'; | |
| export default class Element { | |
| constructor() { | |
| return (responses) => { | |
| let actions = this.intent(responses.DOM); | |
| let tree$ = this.view(this.model(responses, actions)) | |
| let events = {} | |
| return { | |
| DOM: tree$, | |
| events | |
| } | |
| } | |
| } | |
| intent(){ | |
| return {}; | |
| } | |
| model(actionMap){ | |
| return Rx.Observable.just([]); | |
| } | |
| view(state$) { | |
| state$.map( () => h('div') ) | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
結局全部overrideなので意味なさげ