virtual-dom-stream
Stream a virtual-dom tree as HTML. Useful to render virtual-dom
/ mercury
nodes on the server.
Installation
$ npm install virtual-dom-stream
Usage
const vdom = const h = const hs = const bankai = const http = // render a vdom tree to html and append it to body in a stream// and return it as a server responseconst html = bankaihttp { return }
API
readableStream = virtualDomStream(tree)
Render a virtual-dom
tree of h
nodes to a readable stream.