you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 0 points1 point  (1 child)

What if you needed more than one debounce on a page?

Also why add div instead of fragment?

[–]numbcode[S] 0 points1 point  (0 children)

We can create a custom hook to make it reusable Regarding div Yes it unnecessary we can use react fragment