Package Exports
- bacon-dom
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bacon-dom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Usage
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);
Typescript
Get a definitely typed compatible definition file from src/definitelyTyped.
Dev
- Build with
npm run build
- Test once with
npm test
- Run tests with watch using
./node_modules/.bin/karma start