I expect searching to accept the Enter key to search.
Alternatively it would make sense to not have the search button, but instead searching instantly. If that hurts performance there are some ways to fix the possible performance impact:
- listen for onChange, not on every keypress
- debounce the search call (there are libraries for debouncing on npm)
- use a virtual list to only render items that are on screen: https://react-window.vercel.app/
I expect searching to accept the
Enterkey to search.Alternatively it would make sense to not have the search button, but instead searching instantly. If that hurts performance there are some ways to fix the possible performance impact: