mount function

void mount(
  1. Element parent,
  2. Component component
)

Implementation

void mount(Element parent, Component component) {
  final vComponent = VComponent(component);
  vComponent.renderNew(null);
  final node = vComponent.node!;
  parent.nodes.clear();
  parent.append(node);
}