0.1.0 • Published 8 years ago

anchor-pushstate v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

anchor-pushstate

Simple stateless virtual-dom element that will pushstate the href given.

Installation

npm install anchor-pushstate

Usage

var h = require('virtual-dom/h');
var anchor = require('anchor-pushstate');

function render (state) {
  return h('div', [
    'Oh hey!',
    anchor({
      href: '/foo'
    }, [
      'Click here!'
    ])
  ]);
}

Contributing

npm run test

License

MIT