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