@wazespace/wme-react-components
Version:
A package with useful replications of the Waze Map Editor components to use in userscripts
14 lines • 457 B
JavaScript
export function getReactDisplayName(component) {
if (typeof component === 'string')
return component;
if (typeof component === 'function') {
if (component.displayName)
return component.displayName;
if (component.name)
return component.name;
return undefined;
}
if (component.render)
return getReactDisplayName(component.render);
}
//# sourceMappingURL=react-display-name.js.map