bar-component
v1.0.1
Published
tiny loading bar component
Downloads
9
Readme
bar-component
tiny loading bar component
Installation
$ npm install bar-component
Usage
// index.js
var choo = require('choo')
var html = require('choo/html')
var Bar = require('bar-component')
var bar = new Bar()
var app = choo()
app.use(require('bar-component/store')())
app.route('/', (state, emit) => {
return html`<body>
<h1>Hello</h1>
${bar.render(state.__progress)}
</body>`
})
app.mount('body')