how to read event.target in react code example Example: react if event.target is input if (event.target instanceof HTMLInputElement)