Type, slide, pick or tick at the class computer: every real input and change event is on the board, your search handler is counted per request, and find out…
Pick the wrong one and you get a live search that sits still, or an error message that shows after one letter. Add the React trap: React’s onChange is the native input event, and a value set from code fires no event at all.
input fires on every change, change waits for the commit
change for live search change only fires on the commit (Enter/blur), so the search sits still while people type. Use input (+ debounce).onChange = DOM change React wires onChange to the native input event, so it fires on every keystroke. For the commit only, use onBlur or a native change listener.input event That is one request per letter. Wrap the handler in a debounce so the request runs once per pause in the typing.input climbs every letter, change stays 0, and React onChange climbs with input.change fire: the value is committed.focusout but no change: the value did not change since the last commit.input then change in a row (range: change on release).