UNPKG

react-box-tools

Version:

Box tools react components, utils and hooks

15 lines (14 loc) 219 B
import { useRef as f, useEffect as u } from "react"; const c = (r, t) => { const e = f(!1); u(() => { if (!e.current) { e.current = !0; return; } return r(); }, t); }; export { c as u };