"use strict";

exports.__esModule = true;
exports.useRafRender = useRafRender;
var _react = require("react");
function useRafRender() {
  const [entered, setEntered] = (0, _react.useState)(false);
  (0, _react.useEffect)(() => {
    const id = window.requestAnimationFrame(() => {
      setEntered(true);
    });
    return () => {
      window.cancelAnimationFrame(id);
    };
  }, []);
  return entered;
}
//# sourceMappingURL=useRafRender.js.map