anchor-pushstate

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i anchor-pushstate

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • chrisinajar