React onTouchStart Event Last Updated : 30 Jul, 2024 Comments Improve Suggest changes Like Article Like Report React onTouchStart event fires when the user touches one or more points in the element or tag. Similar to other elements in it, we have to pass a function for process execution.It is similar to the HTML DOM ontouchstart event but uses the camelCase convention in React.Syntax:onTouchStart={function}Parameter: The function will call once the user touches any part of the element or tag.Return type:event: It is an event object containing information about the event like target element and valuesExample 1: In this example, we implemented a TouchStart area in it where when the user touches it will give a message in the browser console through function. CSS /*App.css*/ .App { min-width: 30vw; margin: auto; text-align: center; color: green; font-size: 23px; } .Shaded { background-color: lightgray; height: 200px; width: 300px; margin: auto; border-radius: 6px; } JavaScript // App.js import "./App.css" const App = () => { const function1 = (event) => { console.log("Touch Start!") } return ( <div className="App"> <h1>GeeksforGeeks</h1> <h2>Touch inside Shaded Region</h2> <div className="Shaded" onTouchStart={function1}> </div> </div> ); } export default App; Output : Example 2 : In this example, we implemented an area where the user, when touched, will get an alert that a touch event is fired. CSS /*App.css*/ .App { min-width: 30vw; margin: auto; text-align: center; color: green; font-size: 23px; } .Shaded { background-color: lightgray; height: 200px; width: 300px; margin: auto; border-radius: 6px; } JavaScript // App.js import "./App.css" const App = () => { const function1 = (event) => { alert("Touch Start") } return ( <div className="App"> <h1>GeeksforGeeks</h1> <h2>Touch inside Shaded Region</h2> <div className="Shaded" onTouchStart={function1}> </div> </div> ); } export default App; Output: Comment More infoAdvertise with us Next Article React onTouchMove Event P prathamgfg Follow Improve Article Tags : Web Technologies ReactJS React Events Similar Reads React onTouchEnd Event 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 : 2 min read React onTouchCancel Event React onTouchCancel event fires when touch interrupts. Similar to other elements in it, we have to pass a function for process execution. It is similar to the HTML DOM touchcancel event but uses the camelCase convention in React.Syntax:onTouchCancel={function}Parameter : function that will call when 2 min read React onTouchMove Event React onTouchMove event fires when the user touches and moves the cursor. Similar to other elements in it, we have to pass a function for process execution.It is similar to the HTML DOM ontouchmove event but uses the camelCase convention in React.Syntax:onTouchMove={function}Parameter : function tha 2 min read React onMouseEnter Event React onMouseEnter() is an event handler that triggers when the mouse cursor enters the boundaries of an element. It is particularly useful where you want to initiate actions or display information when the user's cursor hovers over an element. It is similar to the HTML DOM onmouseenter event but us 2 min read React onMouseEnter Event React onMouseEnter() is an event handler that triggers when the mouse cursor enters the boundaries of an element. It is particularly useful where you want to initiate actions or display information when the user's cursor hovers over an element. It is similar to the HTML DOM onmouseenter event but us 2 min read React onBlur Event In React, handling user interactions efficiently is important for building responsive and dynamic applications. One of the commonly used events for managing focus behaviour is the onBlur event. This event is important for tracking when a user moves the focus away from an element, such as an input fi 6 min read Like