UNPKG

520 BTypeScriptView Raw
1import { ComponentType } from 'react';
2/**
3 * ---
4 * category: utilities/react
5 * ---
6 * Get the displayName of a React component.
7 * needs a babel plugin to work https://github.com/facebook/react/issues/4915 !!
8 * @module getDisplayName
9 * @param {ComponentType|String} ReactComponent
10 * @returns {String} the component displayName
11 */
12declare function getDisplayName(ReactComponent: string | ComponentType): string;
13export default getDisplayName;
14export { getDisplayName };
15//# sourceMappingURL=getDisplayName.d.ts.map
\No newline at end of file