render (data, parentId) {
    if ( parentId ) {
      const parent = document.getElementById(parentId);
      render(this.template(data), parent);

      this.children.forEach(child => child.render(data, child.parentId));
    }
  }
/**
   * Fill template and inject html into the DOM at the parentId node
   */
Fill template and inject html into the DOM at the parentId node
Fill template and inject html into the DOM at the parentId node
render (data, parentId) {
    if ( parentId ) {
      const parent = document.getElementById(parentId);
      render(this.template(data), parent);
      this.children.forEach(child => child.render(data, child.parentId));
    }
  }
render ( data , parentId ) { if ( parentId ) { const parent = document . getElementById ( parentId ) ; render ( this . template ( data ) , parent ) ; this . children . forEach ( child => child . render ( data , child . parentId ) ) ; } }
Fill template and inject html into the DOM at the parentId node
Fill template and inject html into the DOM at the parentId node