Home>

As the title says, I want to search in real time every time I fill in the form.
A good example of this is the GitHub repository search.
https://github.com/{username}?tab=repositories
Each time you fill out the form, the search is automatic.

If i try to implement this with React, i am not sure how to improve performance.
Currently, the input form is monitored by onChange, and API communication is performed each time with axios.
Also, if it is only that, a lot of communication to the API will be issued, so the cancelToken of the previous API call is retained, and if that API call has not been completed, it will be canceled .
Now, API calls should always be in one state, so I was wondering if the performance would go down, but it was slow when I tried it.