podeem
v0.0.2
Published
A small libary for writing high performance Web User Interfaces.
Downloads
5
Readme
Podeem
A small libary for writing high performance Web UIs.
Based on the excellent work in stage0.
Usage
import h from 'podeem'
// Define the template
const View = h`<div>
<h1>#message</h1>
<button #greet>Greet</button>
</div>`
const view = View() // create a DOM node using the template above
const { message, greet } = View.collect(view)
message.nodeValue = 'Hello World'
greet.__click = () => alert('Hello')
document.body.appendChild(view)