Sass module
Tip
Sass Module은 Component에서 불러올 때 객체로 불러온다.
/* Container.module.scss */
.center {
margin: {
left: auto;
right: auto;
}
}
.left {
margin-right: auto;
}
.right {
margin-left: auto;
}
위의 Scss Module을 Component 파일에서 console로 확인해보자.

자 이렇게 되면 어떻게 활용을 할 수 있느냐? containerStyle[align] 구문, 향상된 객체 표기법을 사용할 수 있다.

Last updated
Was this helpful?