-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] refactor: Checkbox, CheckboxItem 컴포넌트 역할 분리 #1005
Open
ImxYJL
wants to merge
12
commits into
develop
Choose a base branch
from
fe/refactor/997-checkbox-refactor
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ImxYJL
requested review from
chysis,
BadaHertz52 and
soosoo22
as code owners
December 14, 2024 12:49
Deploying 2024-review-me-release with Cloudflare Pages
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 어떤 기능을 구현했나요 ?
🔥 어떻게 해결했나요 ?
상속 구조
-Base
컴포넌트는 공통 속성(id
,label
,isChecked
등등)을 기본으로 요구하고, 스타일링을 담당하는 기본 컴포넌트입니다.onChange
핸들러를 통해 사용자와 상호작용 가능한 컴포넌트, readonly인 컴포넌트는 일단 Base를 상속받습니다.용도별 인터페이스 분리
컴포넌트 분리로 필요한 속성만 전달
컴포넌트 분리의 연장선입니다.
$isReadonly
,isDisabled
가 true임에도 매번 값을 전달해야 합니다.즉 동적으로 꼭 전달해야 하는 값만 보낼 수 있습니다.
기본 인터페이스를 제공하되, rest prop 사용 가능
📝 어떤 부분에 집중해서 리뷰해야 할까요?
📚 참고 자료, 할 말
이제 복원 로직 리팩토링하러 갑니다 🙂