@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
22 lines (21 loc) • 655 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use client";
import { useState as n, useEffect as r } from "react";
const m = (e, t = 500) => {
const [o, u] = n(e);
return r(() => {
const c = setTimeout(() => {
u(e);
}, t);
return () => clearTimeout(c);
}, [e, t]), o;
};
export {
m as useDebounce
};