useEffect.dev
← Back to lessons

Lesson 9. Debouncing a user input 5. Next step

Debouncing is a very common pattern when dealing with user inputs, and existed way before hooks. If you look on the Internet, you’ll find a lot of different implementations, for React or not, with or without hooks.

I think creating your own debouncing logic is a very interesting problem, and you can implement exactly the logic you want. We just saw two different variants, but there are a lot more possible.

In the next lesson, we’ll talk about another very common pattern in React: the Provider/Consumer pattern. And to use this pattern, we’ll use contexts, and the useContext hook.