a post-component library for building user-interfaces on the web.
TypeScript 50.2%
JavaScript 43.6%
HTML 4.3%
CSS 1.0%
Shell 0.9%
Other 0.1%
82 14 0

Clone this repository

https://tangled.org/tombl.dev/dhtml https://tangled.org/did:plc:3dk7at6chlxrvmiduw4cf7cp/dhtml
git@k.tombl.net:tombl.dev/dhtml git@k.tombl.net:did:plc:3dk7at6chlxrvmiduw4cf7cp/dhtml

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
readme.md

dhtml#

a post-component library for building user interfaces on the web.

import { Root, html, invalidate } from 'https://tombl.github.io/dhtml/html.js'

const app = {
	i: 0,
	render() {
		return html`
			<button
				@click=${() => {
					this.i++
					invalidate(this)
				}}
			>
				Count: ${this.i}
			</button>
		`
	},
}

Root.appendInto(document.body).render(app)