CSS/JS Selector naming
Front-end 작명법
.block : as a base
.block__element : child node
.block--modifier : different state, version
just one - or _?
:: for naming - or _ 사용될 수 있음.
with BEM Naming -> Anyone in team can see what's going on / What that selector will do.
Though, It is long, ugly.
But,It is easy to reuse.
'개발' 카테고리의 다른 글
CORS (0) | 2023.01.31 |
---|---|
Recoil (0) | 2022.08.25 |
Typescript + styled-components (0) | 2022.08.12 |
스파르타코딩클럽 메이킹 챌린지 후기 (0) | 2022.03.18 |
# Mu-ther 개발 정리 (0) | 2022.03.18 |