| 순서 | 속성 | 의미 |
|---|---|---|
| 1 | display | 표시 |
| 2 | overflow | 넘침 |
| 3 | float | 흐름 |
| 4 | position | 위치 |
| 5 | z-index | 정렬 |
| 6 | width & height | 크기 |
| 7 | margin & padding(그룹) | 간격 |
| 8 | border(그룹) | 보더 |
| 9 | background(그룹) | 배경 |
| 10 | font(그룹) | 폰트 |
| 11 | 기타 | 기타 속성은 순서 무관 |
파일명
react → react-router-dom → component → 일반함수 → img 순으로 불러온다.
일반함수는 camelCase로 작성하고, 동사 + 명사로 구성한다. ex) getUserInformation
컴포넌트
HeaderSection.jsstyled-component
import * as Styled from~
사용시 Styled.Button 으로 사용되고 여기서 Button은 styled component라고 이해한다.const Button = styled.button
이미지, 아이콘
import selectedStarImg from './selected-star.png'변수명 : camelCase로 작성한다.
CODE_IT_PROJECT = ~handleClick()Prettier, Lint 컨벤션 정하기
https://www.daleseo.com/js-prettier-config/
https://tyoon9781.tistory.com/entry/vscode-React-Prettier-ESLint-setting