Last active
October 3, 2015 20:29
-
-
Save r7kamura/a8fc92261921032eb42d 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
import { makeDOMDriver } from '@cycle/dom'; | |
import Cycle from '@cycle/core' | |
import intent from './intent' | |
import model from './model' | |
import view from './view' | |
Cycle.run( | |
({ DOM }) => { | |
return { DOM: view(model(intent(DOM))) }; | |
}, | |
{ | |
DOM: makeDOMDriver('body') | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment