Skip to content

Instantly share code, notes, and snippets.

View jvanbruegge's full-sized avatar

Jan van Brügge jvanbruegge

View GitHub Profile
@jvanbruegge
jvanbruegge / todo.js
Last active April 11, 2017 08:05
A simple todo test in Cyclejs and xstream
import {
div, span, p, input, ul, li, button, body
}
from '@cycle/dom'
import xs from 'xstream'
export function Todo(sources) {
const action$ = intent(sources.DOM);
const model$ = action$
.fold((state, reducer) => reducer(state), {