I was trying to modify class attribute of a child element when the parent element is hovered.
Here is one of my attempts at the solution.
const useStyles = makeStyles((theme) => ({
parent: {
"&:hover child": {
marginLeft: '0px'
},
child: {
marginLeft: '-99px'
}
})
Reference a class name with a $ like so: