@ionic/react
Version:
React specific wrapper for @ionic/core
9 lines (8 loc) • 363 B
TypeScript
/**
* The @stencil/react-output-target will bind event listeners for any
* attached props that use the `on` prefix. This function will remove
* those event listeners when the component is unmounted.
*
* This prevents memory leaks and React state updates on unmounted components.
*/
export declare const detachProps: (node: HTMLElement, props: any) => void;