UNPKG

@prezly/react-promise-modal

Version:

The proper (and easy) way of doing modals in React. With Promises.

8 lines (7 loc) 314 B
/** * @see https://streamich.github.io/react-use/?path=/story/lifecycle-usemountedstate--docs * * Lifecycle hook providing ability to check component's mount status. * Returns a function that will return true if component mounted and false otherwise. */ export declare function useIsMounted(): () => boolean;