Skip to content

useThrottle

描述

用来处理节流值的 Hook。

示例

ts
import { useThrottle } from '@base-web-kits/base-tools-react';

const throttledValue = useThrottle(value, { wait: 500 });

来源

ahooks