src/renderToString.js
function renderNode(node, children = []) {
    [...children].forEach(child => {
        if (child && child.tag) {
            node.ele(child.tag, child.props);
            renderNode(node, child.children);
            node.end();
        } else {
            node.text(child);
        }
    });
}
function renderNode(node, children = []) {
    [...children].forEach(child => {
        if (child && child.tag) {
            node.ele(child.tag, child.props);
            renderNode(node, child.children);
            node.end();
        } else {
            node.text(child);
        }
    });
}
function renderNode ( node , children = [ ] ) { [ ... children ] . forEach ( child => { if ( child && child . tag ) { node . ele ( child . tag , child . props ) ; renderNode ( node , child . children ) ; node . end ( ) ; } else { node . text ( child ) ; } } ) ; }
Recursively turns jsx children into xml nodes
@param {Array} children
@param {XMLNode} node
Recursively turns jsx children into xml nodes