Skip to content
/ dhtml Public

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

License

Notifications You must be signed in to change notification settings

tombl/dhtml

Repository files navigation

dhtml

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

import { html } from 'https://tombl.github.io/dhtml/dist/index.js'
import { createRoot, invalidate } from 'https://tombl.github.io/dhtml/dist/client.js'

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

createRoot(document.body).render(app)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published