import { useState, useCallback } from 'react';
export default function useUpdate() {
var _useState = useState(0),
setValue = _useState[1];
return useCallback(function () {
setValue(function (val) {
return (val + 1) % (Number.MAX_SAFE_INTEGER - 1);
});
}, []);
}