Put in order · JavaScript and React course · Module 11: Data Fetching and APIs

Debounce with setTimeout in useEffect

Arrange the debouncing syntax with setTimeout in useEffect:

Items to put in order

  • setTimeout(() =>
  • setDebouncedQuery(query),
  • 500)
  • const timer =

You can check the correct answer by solving this task in the CodeWorlds game.