Rudchyk
3/19/2020 - 10:46 AM

onTouchStart Action

Назви подій:

  • onTouchCancel
  • onTouchEnd
  • onTouchMove
  • onTouchStart

Links:

const MyComponent = () => {
  const handleTouchStart = e => {
    if (e.touches.length === 1) {
      // ... do what you like here
    }
  };
  return (
    <div onTouchStart={handleTouchStart}>
      Hello World!
    </div>
  )
};
 
export default MyComponent;