import { useRef } from "react";
function useConstant(init) {
  const ref = useRef(null);
  if (ref.current === null) {
    ref.current = init();
  }
  return ref.current;
}
export {
  useConstant
};
//# sourceMappingURL=dist-es-utils-use-constant.js.map
