UNPKG

@shakacode/recompose

Version:

A React utility belt for function components and higher-order components

14 lines (13 loc) 359 B
"use strict"; exports.__esModule = true; exports["default"] = void 0; var getDisplayName = function getDisplayName(Component) { if (typeof Component === 'string') { return Component; } if (!Component) { return undefined; } return Component.displayName || Component.name || 'Component'; }; var _default = exports["default"] = getDisplayName;