VOOZH about

URL: https://www.geeksforgeeks.org/reactjs/react-ontouchend-event/

⇱ React onTouchEnd Event - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

React onTouchEnd Event

Last Updated : 23 Jul, 2025

React onTouchEnd event event fires when the user touches screen and releases the touch. Similar to other elements in it, we have to pass a function for process execution.

It is similar to the HTML DOM ontouchend event but uses the camelCase convention in React.

Syntax:

onTouchEnd={function}

Parameter :

function that will call once the user touches and releases screen.

Return type:

  • event: It is an event object containing information about the event like target element and values

Example 1 : In this example we implemented TouchEnd area where user touch and release then event fires and display a message in console.

Output :

Example 2 : In this example, we implemented an area where the user, when touch and release, will get an alert that a touch event is fired.

Output:

Comment
Article Tags: