src/component.js
function createInstance(datum, index) {
    const selection = select(this);
    setInstance(this, {
      component, selection, destroy, datum, index,
    });
    create(selection, datum, index);
  }
function createInstance(datum, index) {
    const selection = select(this);
    setInstance(this, {
      component, selection, destroy, datum, index,
    });
    create(selection, datum, index);
  }
function createInstance ( datum , index ) { const selection = select ( this ) ; setInstance ( this , { component , selection , destroy , datum , index , } ) ; create ( selection , datum , index ) ; }
Creates a new component instance and stores it on the DOM node.
Creates a new component instance and stores it on the DOM node .