addComponents(data, options) {
    data = data || this.data;
    this.components = this.components || [];
    options = options || this.options;
    if (options.components) {
      this.components = options.components;
    }
    else {
      const components = this.hook('addComponents', this.componentComponents, this) || [];
      components.forEach((component) => this.addComponent(component, data));
    }
  }
Add a new component instance to the components array.
@param {import('@formio/core').DataObject} [data] - The Submission data for this component.
@param {object} [options] - The options for this component.