BFE.dev
buy us
a coffee
CompanyListsDiscuss
buy us
a coffee
React Coding Questions2. useTimeout()

2. useTimeout()

ReactHooks
Share

  - accepted / - tried

Create a hook to easily use setTimeout(callback, delay).

  1. reset the timer if delay changes
  2. DO NOT reset the timer if only callback changes
prevnext

Think aloud!

(1)
(37)

Try it out

Console