@botonic/react
Version:
Build Chatbots using React
13 lines (12 loc) • 371 B
TypeScript
/**
* Get the name of an element (instantiated component)
* @param {React.Element} component
* @returns {string}
*/
export function getElementName(component: React.Element): string;
/**
* Get the name of a component TYPE
* @param {React.ComponentType} component
* @returns {string}
*/
export function getComponentTypeName(component: React.ComponentType): string;