79594749

Date: 2025-04-27 06:41:59
Score: 1
Natty:
Report link

You can try like his

<button
    onMouseDown={() => setActive(true)}
    onMouseUp={() => setActive(false)}
    onMouseLeave={() => setActive(false)}
    style={{ 
         backgroundColor: active ? '#fff' : '#000', 
         color: active ? '#000' : 'fff'
    }}
>
    Button Label
</button>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dhamotharan