Categories

Dec 14, 2019 in React JS

Q: Mouse Events in React JS

1 Answer

Dec 14, 2019

Event names:

onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit
onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
onMouseMove onMouseOut onMouseOver onMouseUp

The onMouseEnter and onMouseLeave events propagate from the element being left to the one being entered instead of ordinary bubbling and do not have a capture phase.

Properties:

boolean altKey
number button
number buttons
number clientX
number clientY
boolean ctrlKey
boolean getModifierState(key)
boolean metaKey
number pageX
number pageY
DOMEventTarget relatedTarget
number screenX
number screenY
boolean shiftKey

Click here to read more about React JS
Click here to read more about Insurance

Related questions

Madanswer
Dec 14, 2019 in React JS
Dec 14, 2019 in React JS
Jul 2, 2019 in React JS
...