i am currently working on project
i have using onclik method for search data on my chat app.
like below :-
<div className="userChat" id="myform" onClick={handleSelect} >
<img src={user.photoURL} alt="" />
<div className="userChatInfo">
<span>{user.displayName}</span>
</div>
</div>
i want to use this line of code for mobile devices (screen touch) how can i do that?