A rendering loop for snabbdom.
npm install snabbdom-render
import snabbdom from 'snabbdom'
import h from 'snabbdom/h'
import render from 'snabbdom-render'
const patch = snabbdom.init([])
const tree = () => h('p', new Date().toISOString())
const root = document.getElementById('root')
const update = render(patch, tree, root)
setInterval(update, 3000)For an example built with Redux, see examples/counter.
Use patch to render the given tree on the root node.