Create a stream of virtual-dom HTML trees, attach them to a real node.
var Bacon = require("baconjs");
var h = require("virtual-dom/h")
var attach = require("bacon-dom");
var ticks = Bacon.interval(1000, 1);
var count = ticks.scan(0, function(sum, newValue) { sum + 1 } );
var html = count.changes().map( function(n) { h('.count', [String(n)]) } );
attach(html).to(document.body);
Get a definitely typed compatible definition file from src/definitelyTyped.
- Build with
npm run build
- Test once with
npm test
- Run tests with watch using
./node_modules/.bin/karma start