Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

스타일 가이드 - 싱글 인스턴스 컴포넌트 이름 #26

Open
Bogyie opened this issue Nov 9, 2022 · 0 comments
Open

스타일 가이드 - 싱글 인스턴스 컴포넌트 이름 #26

Bogyie opened this issue Nov 9, 2022 · 0 comments
Assignees

Comments

@Bogyie
Copy link
Member

Bogyie commented Nov 9, 2022

### 싱글 인스턴스 컴포넌트 이름 <sup data-p="b">매우 추천함</sup>
**Components that should only ever have a single active instance should begin with the `The` prefix, to denote that there can be only one.**
This does not mean the component is only used in a single page, but it will only be used once _per page_. These components never accept any props, since they are specific to your app, not their context within your app. If you find the need to add props, it's a good indication that this is actually a reusable component that is only used once per page _for now_.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant