docs: function getElementType(Component, props) {
    const { defaultProps = {} } = Component
    // ----------------------------------------
    // user defined "as" element type
  
    if (props.as && props.as !== defaultProps.as) return props.as
  
    // ----------------------------------------
    // infer anchor links
  
    if (props.href) return 'a'
  
    // ----------------------------------------
    // use defaultProp or 'div'
  
    return defaultProps.as || 'div'
  }