@erickmerchant/framework
A very simple framework in a bit less than 3kB minified + gzipped. No build step required to use. Import it from a cdn like skypack and get started.
Example
import {
createApp,
createDomView,
html
} from 'https://cdn.skypack.dev/@erickmerchant/framework?min'
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" @click=${decrement}>--</button>
<button type="button" @click=${increment}>++</button>
</div>
`
)
app.render(view)