import { useEffect, useState } from 'react';
export function useRafRender() {
    const [entered, setEntered] = useState(false);
    useEffect(() => {
        const id = window.requestAnimationFrame(() => {
            setEntered(true);
        });
        return () => {
            window.cancelAnimationFrame(id);
        };
    }, []);
    return entered;
}
//# sourceMappingURL=useRafRender.js.map