ivi-render-to-string [UNIVERSAL]
Render Virtual DOM to string.
This module is working in all environments: browser, server, etc.
API
renderToStringnode: VNode<any>, context = ROOT_CONTEXT, owner?: Component<any>: string;
Example
;; renderToString$h"div", "abc".children"Hello World";// => <div class="abc">Hello World</div> renderToString$h"div", "abc".children;// => <div class="abc"><!---->Hello<!----><!---->World<!----></div>
Adjacent Text Nodes
Adjacent text nodes are separated with HTML Comment nodes.