OpenDirective / brian

Easy communication and media access for people with cognitive access requirements
http://opendirective.github.io/brian
MIT License
8 stars 3 forks source link

Rework to use the new XStream & cycle Diverse #65

Open SteveALee opened 8 years ago

SteveALee commented 8 years ago

Stalz announced XSteam at #cycleconf http://staltz.com/xstream/

SteveALee commented 8 years ago

Can port to new DOM driver now

Import Cycle from '@cycle/rxjs-run'
import Rx from 'rxjs'
import {makeDOMDriver, div} from '@cycle/dom'

function main(sources) {
  return {
    DOM: Rx.Observable.of(
      div('Hello, world!')
    )
  }
}

Cycle.run(main, {
  DOM: makeDOMDriver('#app')
})