useEffect.dev
← Back to lessons

Lesson 9Debouncing a user input

Triggering an HTTP request each time an input is modified is common to implement a search or autocomplete feature. Usually, it is an excellent idea to debounce the requests, so they are performed every 300 milliseconds, for instance. Here we see how to implement this behavior with hooks.