DEV Community

Discussion on: React Hooks | My Package

 
daxsoft profile image
Michael Willian Santos

You are welcome :)
Sure thing you can debounce a function, on the example that I have give you, I have put a value because the state itself isn't a function. But you can use a function, however, this function need to return a value that will be changed (to get debounced)