react if event.target is input code example Example: react if event.target is input if (event.target instanceof HTMLInputElement)