Skip to content

네이밍 규칙

jin-Pro edited this page Jan 31, 2022 · 3 revisions

[ constant : SNAKE_CASE (with Capital Letter) ]

export const SUCCESS_MESSAGE = '성공!' ✅
export const successMessage ='성공!' ❌

[ variable : camelCase ]

const inputVariable ✅
const InputVariable ❌

[ function : camelCase ]

const handleClick = () => {} ✅
const handle_click = () => {} ❌

[ component : PascalCase ]

const FunctionalComponent = ({...props}) => {} ✅
const functionalComponent = ({...props}) => {} ❌