usePageLeave
Detects when the mouse leaves the page.
Usage
import { usePageLeave } from "@siberiacancode/reactuse";
const left = usePageLeave();Example
const left = usePageLeave();
return <div>{left ? "Leaving" : "Here"}</div>;Type Declarations
export declare const usePageLeave: (callback?: () => void) => boolean;