Skip to content

Instantly share code, notes, and snippets.

@takashi
Last active October 8, 2015 08:18
Show Gist options
  • Select an option

  • Save takashi/65f4bdaaf2c1ecddb80f to your computer and use it in GitHub Desktop.

Select an option

Save takashi/65f4bdaaf2c1ecddb80f to your computer and use it in GitHub Desktop.
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') )
}
}
@takashi
Copy link
Author

takashi commented Oct 8, 2015

結局全部overrideなので意味なさげ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment