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