Skip to content

Instantly share code, notes, and snippets.

import {Observable as O} from 'rx';
import Cycle from '@cycle/core';
import {div, label, input, hr, ul, li, a, makeDOMDriver} from '@cycle/dom';
import {makeHTTPDriver} from '@cycle/http';
import {makeRouterDriver} from 'cyclic-router'; // version 1.0.0
import {createHashHistory} from 'history';
import isolate from '@cycle/isolate';
const history = createHashHistory();
// hoc
compose(
withState('a', 'setA'),
withState('b', 'setB'),
withProps(({ a, b }) => ({ c: a + b }))
);
// render function
return (
<div>