1.1.0 • Published 9 years ago

append-hook v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

append-hook Build Status

virtual-dom hook for element append

Install

$ npm install --save append-hook

Usage

var AppendHook = require('append-hook')
var h = require('virtual-dom/h')

var vtree = h('div', {
  onAppend: AppendHook(callback)  
})

function callback (node) {
  //=> div appended to the DOM
}

API

AppendHook(callback) -> object

callback

Required
Type: function

A callback to call when the virtual node is appended to the DOM as a real node.

License

MIT © Ben Drucker

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago