The type property is an event-object property that identifies which event occurred. Read it as evt.type inside a React event handler. section 8.2.2 section 8.2.3
Distinguishing events in one handler
Assign one handler to both onMouseEnter and onFocus, then inspect evt.type to determine whether the user moved the mouse over the input or reached it with the keyboard. section 8.2.2
React synthetic events follow the standard event API model. Along with type and target, they provide shared methods such as preventDefault() and stopPropagation(); specialized event types add their own properties. section 8.2.3
