0.1.0 • Published 8 years ago
anchor-pushstate v0.1.0
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
0.1.0
8 years ago