rem 단위 사용하기10px === 1rem
ex) 112px → 11.2rem
+) 그러나, 정확한 크기가 필요한 border, box-shadow 등은 px 단위를 사용해요
import TimeIcon from './time.svg';
export {
TimeIcon,
...};
import { UpIcon, TimeIcon } from '../../assets/icons';
<UpIcon />
<TimeIcon />
전체 모듈을 하나의 객체로 가져오는 방식을 사용해요 (1개 이상일 때)
import * as styles form ‘@shared/card.css’
className={styles.containerStyle}