I have created an Appbar component in React.js with 3 buttons in it but I would like to change the color when I hover over those buttons. The background color is #3c52b2 and the text color is #fff. I would like the background color and text color exchange when I hover over the button.
I've tried the code below but still not working.
Button: {
'&:hover': {
backgroundColor: '#ffffff',
boxShadow: 'none',
},
'&:active': {
boxShadow: 'none',
backgroundColor: '#3c52b2',
},
},