selvi jp

selvi jp

  • NA
  • 323
  • 69.3k

how to check clicked button in react js

Oct 8 2021 8:17 AM

Hi,

I want mouseover,mouseout and onclick function for same button.

if i hover image2 display if i hoverout image1 display.if i click image2 will display.the issue is i click the button image2 display but after click also i want to display same image2.but that time mouseout function is execute so after mouseout image1 will display.This is same as like function in facebook.default transparent thumbsup sympol .if i hover blue color thumbsup sympol will appear.if i click blue color thumbs up sympol will appear

 

.I want if condition for the button.if i click button status is false then only mouseout will work.


Answers (3)