Concise, ultra high-performance and minimalistic Virtual DOM implementation that supports true Cycle MVI pattern without need of isolation
WIP! This package is still under heavy development, use with extreme care!!
import * as O from "most"
import {run} from "@cycle/most-run"
import DOM from "@culli/dom"
function main({DOM: {h, combine}}) {
const date = O.periodic(1000).map(() => new Date().toTimeString())
const vdom = h("div", [
h("h2", ["Clock is: ", date])
])
return {
DOM: combine(vdom)
}
}
run(main, {
DOM: DOM("#app")
})
MIT