Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 309 Bytes

debounce.md

File metadata and controls

22 lines (16 loc) · 309 Bytes

debounce

import { debounce } from '@ttrmz/react-utils'

Usage

const handler = debounce(() => {
  // your logic here
}, 250)

window.addEventListener('resize', handler)

Parameters

Name Type
callback Function
delay Number