When working with traditional CSS, it is common to define shared properties between classes like this:
.classA,.classB{
background-color: black;
}
In Material UI and using theming, the equivalent would be:
styles = (theme)=>({
classA:{
backgroundColor: 'black'
},
classB:{
backgroundColor: 'black'
},
})
I am curious if there is a way to streamline the code in the material UI approach above, possibly defining both classes simultaneously. Is there a syntax that allows for something like this (in pseudocode)?:
styles = (theme)=>({
classA,classB:{
backgroundColor: 'black'
},
})