react-click-n-hold
react-click-n-hold copied to clipboard
ClickNHold Button With State
I have a powerOn powerOff button that uses this library.
If the button state is OFF, when I press to turn on it goes from gray to green color with animation.
But since the button takes
cnh_holding
class on press, I could not achive green to gray animation while pressing ON state button so switch OFF. What is the solution for such a case.