Renders a newly created (this) virtual node and replaces the content of node with the new content.
node
void renderAndReplace(VNode? parent, Node node) { renderNew(parent); node.replaceWith(this.node!); }