render(children = this.t('unknownComponent', { type: this.component.type }), topLevel = false) {
    const isVisible = this.visible;
    this.rendered = true;

    if (!this.builderMode && !this.previewMode && this.component.modalEdit) {
      return ComponentModal.render(this, {
        visible: isVisible,
        showSaveButton: this.hasModalSaveButton,
        id: this.id,
        classes: this.className,
        styles: this.customStyle,
        children
      }, topLevel);
    }
    else {
      return this.renderTemplate('component', {
        visible: isVisible,
        id: this.id,
        classes: this.className,
        styles: this.customStyle,
        children
      }, topLevel);
    }
  }
Renders a component as an HTML string.
@param {string} children - The contents of all the children HTML as a string.
@param {boolean} topLevel - If this is the topmost component that is being rendered.
@returns {string} - The rendered HTML string of a component.