checkChildren(children) {
    const valid = this.getTargetComponent(children) && this.getContentComponent(children);

    if (!valid) {
      console.error('Popper must contain one Target component and one Content component.');
    }

    return valid;
  }
/*  logs an error if children are invalid and returns valid state */
logs an error if children are invalid and returns valid state
logs an error if children are invalid and returns valid state
checkChildren(children) {
    const valid = this.getTargetComponent(children) && this.getContentComponent(children);
    if (!valid) {
      console.error('Popper must contain one Target component and one Content component.');
    }
    return valid;
  }
checkChildren ( children ) { const valid = this . getTargetComponent ( children ) && this . getContentComponent ( children ) ; if ( ! valid ) { console . error ( 'Popper must contain one Target component and one Content component.' ) ; } return valid ; }
logs an error if children are invalid and returns valid state
logs an error if children are invalid and returns valid state