Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

detect touch react

// Run this
// npm i tappify

import Tappify from "tappify";

function myComponent() {
  return <>
    <Tappify.Finger>
      Client is using finger *tap tap*
    </Tappify.Finger>

    <Tappify.Cursor>
      Client is using mouse cursor *click click*
    </Tappify.Cursor>
  </>
}
 
PREVIOUS NEXT
Tagged: #detect #touch #react
ADD COMMENT
Topic
Name
6+8 =