Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Latest commit

 

History

History

dom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@culli/dom

Concise, ultra high-performance and minimalistic Virtual DOM implementation that supports true Cycle MVI pattern without need of isolation

npm

WIP! This package is still under heavy development, use with extreme care!!

Example

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")
})

License

MIT