removeComponentById(id, fn = null) {
    const comp = this.getComponentById(id, (component, components) => {
      this.removeComponent(component, components);
      if (fn) {
        fn(component, components);
      }
    });
    if (!comp) {
      if (fn) {
        fn(null);
      }
      return null;
    }
  }
Removes a component provided the Id of the component.
@param {string} id - The Id of the component to remove.
@param {Function} fn - Called when the component is removed.
@returns {null|void} - Returns nothing if the component is not found.