I'm trying to change the background of one div on the hover of another using material ui.
The standard css is:
#a:hover ~ #b {
background: #ccc;
}
This is my attempt in material ui.
const useStyles = makeStyles(theme => ({
a: {
background:'#fff',
},
b: {
background:'#fff'
'&:hover ~ #a': {
background:'#eee'
}
}));