Closed seongbin9786 closed 6 years ago
하위 속성으로
'&:hover': {
//content
}
주면 됨
원리
예제 코드
// "image" won’t be namespaced
const styles = {
'@global': {
image: { backgroundColor: 'red' },
},
};
const background = { backgroundColor: '#000' };
const styles = theme => ({
button: {
extend: [background, 'buttonBig'],
width: 50,
},
buttonBig: {
fontSize: 20,
}
});
withStyles
를 사용하면 CSS 규칙을 function으로 사용할 수 있다.button: props => ({ backgroundColor: props.backgroundColor })