Skip to content

Instantly share code, notes, and snippets.

@rofrol
Last active January 31, 2016 21:14
Show Gist options
  • Save rofrol/5e73c1e4f731f0a65d1a to your computer and use it in GitHub Desktop.
Save rofrol/5e73c1e4f731f0a65d1a to your computer and use it in GitHub Desktop.
Cycle.js timer demo
<div id="app"></div>
Cycle.run((sources) => ({DOM: Rx.Observable.timer(0, 1000).map(i => CycleDOM.h(`div`, `Seconds elapsed test2: ${i}`))}),{DOM: CycleDOM.makeDOMDriver(`#app`)})
body {
background-color: #1D1F20;
color: #FFFFF8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment