import { useCallback, useState } from 'react';
const stateChanger = (state) => (state + 1) % Number.MAX_SAFE_INTEGER;
export function useRerender() {
    const [, setState] = useState(0);
    return useCallback(() => {
        setState(stateChanger);
    }, []);
}
