Created
January 4, 2017 00:15
-
-
Save andersonleite/9f568e87f387c60557c09cf6a60775d1 to your computer and use it in GitHub Desktop.
This file contains 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
function main(sources) { | |
const {refreshClickStream$, close1ClickStream$, close2ClickStream$, close3ClickStream$} = intent(sources.DOM); | |
const state$ = model(refreshClickStream$, close1ClickStream$, close2ClickStream$, close3ClickStream$); | |
const vtree$ = view(Rx.Observable.of('')); | |
return { | |
DOM: vtree$ | |
}; | |
} | |
const drivers = { | |
DOM: makeDOMDriver('#app') | |
}; | |
Cycle.run(main, drivers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment