Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 302 Bytes
import * as Types from '../types'
import * as html from 'yo-yo'
export default function renderer(dom: HTMLElement): Types.Helix.Renderer<any, any> {
let _dom = dom
return function(node, state, prev, actions) {
if (node) {
_dom = html.update(_dom, node(state, prev, actions))
}
}
}