UNPKG

lism

Version:

Collection of TypeScript Utilities to help developers streamline their coding workflow.

14 lines (13 loc) 369 B
/** * A custom React hook that determines whether the component is mounted. * * @returns {boolean} - Returns `true` if the component is mounted, `false` otherwise. * * @example * ```tsx * const isMounted = useMounted(); * console.log(isMounted); // true if the component is mounted * ``` */ declare const useMounted: () => boolean; export default useMounted;