UNPKG

@shopify/polaris

Version:

Shopify’s product component library

9 lines (8 loc) 404 B
import { EffectCallback } from '../types'; /** * Similarly to the lifecycle hook componentDidMount, useComponentDidMount * will be invoked after the component has mounted, and only the initial mount. * @param callback Defines a callback to invoke once the component has * initially mounted. */ export declare function useComponentDidMount(callback: EffectCallback): void | (() => void | undefined);