import { useEffect } from 'react'; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

var useMount = function useMount(fn) {
  useEffect(function () {
    fn();
  }, []);
};

export default useMount;