UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

15 lines (14 loc) 300 B
import { useState as r, useEffect as c } from "react"; function f(e, t) { const [u, o] = r(e); return c(() => { const n = setTimeout(() => o(e), t || 500); return () => { clearTimeout(n); }; }, [e, t]), u; } export { f as default }; //# sourceMappingURL=use-debounce.js.map