![]() |
VOOZH | about |
React onPointerUp event fires when the mouse button is clicked and released and it detects the right, left, or middle click of the mouse. Similar to other events, we have to provide a function that will execute their process.
onPointerUp={function}Parameter :
Return type:
Example 1 : In this example, we implemented an area where the user will click any button, and in the event, the user will get numbers (which can be 0, 1, or 2), and accordingly, we are assuming which button is clicked.
Output:
Example 2: In this example, we implemented an area where users can click and detect the onPointerUp event that is fired through an alert.
Output: