Skip to content

Instantly share code, notes, and snippets.

@PhilipWee
Last active August 19, 2022 05:42
Show Gist options
  • Save PhilipWee/34f8055b1b35c33c1ac90ade002f260c to your computer and use it in GitHub Desktop.
Save PhilipWee/34f8055b1b35c33c1ac90ade002f260c to your computer and use it in GitHub Desktop.
const _changeText(newText:string) {
setText(newText)
}
const changeText = useDebounce(_changeText, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment