code: function getComponentName(target: ComponentType<*>): string {
    if (target.displayName && typeof target.displayName === 'string') {
      return target.displayName;
    }
  
    return target.name || 'Component';
  }
docs: Attempt to get the wrapped component's name