bacon-dom

0.4.0 • Public • Published

Build Status

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    1
    • latest

Version History

Package Sidebar

Install

npm i bacon-dom

Weekly Downloads

1

Version

0.4.0

License

Apache-2.0

Last publish

Collaborators

  • joelea