Implemented the condition if e.target.value.length is greater than 2 then the search/filter function for a username can kick off. Also implemented useDebouncedCallback which allows for the search functionality to wait for some time for the user to finish typing before the search/filter functionality can kick in. All this was implemented in the Search component.
Implemented the condition if
e.target.value
.length is greater than 2 then the search/filter function for ausername
can kick off. Also implementeduseDebouncedCallback
which allows for the search functionality to wait for some time for the user to finish typing before the search/filter functionality can kick in. All this was implemented in theSearch
component.