@instructure/ui-react-utils
Version:
A React utility library made by Instructure Inc.
15 lines • 488 B
TypeScript
import { ComponentType } from 'react';
/**
* ---
* category: utilities/react
* ---
* Get the displayName of a React component.
* needs a babel plugin to work https://github.com/facebook/react/issues/4915 !!
* @module getDisplayName
* @param ReactComponent
* @returns the component displayName
*/
declare function getDisplayName(ReactComponent: string | ComponentType): string;
export default getDisplayName;
export { getDisplayName };
//# sourceMappingURL=getDisplayName.d.ts.map