function useOnUnmount(fn) {
    useEffect(
        () => fn,
        []
    );
}
/**
 * Hook to run a function once after component has been unmounted.
 * @param {function} fn
 */
Hook to run a function once after component has been unmounted.
@param {function} fn
Hook to run a function once after component has been unmounted . @param { function } fn
function useOnUnmount(fn) {
    useEffect(
        () => fn,
        []
    );
}
function useOnUnmount ( fn ) { useEffect ( ( ) => fn , [ ] ) ; }
Hook to run a function once after component has been unmounted.
Hook to run a function once after component has been unmounted .