https://github.com/tombl/dhtml
a post-component library for building user-interfaces on the web.
https://github.com/tombl/dhtml
Last synced: 2 months ago
JSON representation
a post-component library for building user-interfaces on the web.
- Host: GitHub
- URL: https://github.com/tombl/dhtml
- Owner: tombl
- License: mit
- Created: 2024-10-20T15:41:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T15:51:41.000Z (3 months ago)
- Last Synced: 2025-03-24T16:38:45.677Z (3 months ago)
- Language: TypeScript
- Homepage: https://tombl.github.io/dhtml/
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# `dhtml`
a post-component library for building user interfaces on the web.
```javascript
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`
{
this.i++
invalidate(this)
}}
>
Count: ${this.i}
`
},
}createRoot(document.body).render(app)
```