@erickmerchant/framework
A very simple framework in a bit more than 2kB minified + gzipped. No build step required to use. Import it from a cdn like skypack or unpkg and get started.
Example
import {createApp, createDomView, html} from 'https://unpkg.com/@erickmerchant/framework/main.js'
const app = createApp(0)
const decrement = () => {
app.state--
}
const increment = () => {
app.state++
}
const target = document.querySelector('div')
const view = createDomView(target, (state) => html`
<div>
<output>${state}</output>
<br />
<button type="button" onclick=${decrement}>--</button>
<button type="button" onclick=${increment}>++</button>
</div>
`
)
app.render(view)