-
Notifications
You must be signed in to change notification settings - Fork 0
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
✨ checkbox component #49
Conversation
src/components/common/CheckBox.tsx
Outdated
} | ||
|
||
const CheckBox = ({ checked, disabled, label, onChange, ...props }: Props) => { | ||
const [isChecked, setIsChecked] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked 값을 이미 props로 받고있는데 체크박스 컴포넌트 내부에서 따로 isChecked 상태를 관리하는 이유가 뭔가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
데이터를 미리 fetch 할 수 있는 경우를 생각했는데,,,,, 이 컴포넌트에서는 필요없겠네용 수정하겠습니다
e05a76c
to
de77bcb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
de77bcb
to
314bc8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's Changed?
Screenshots
Related to any issues?
Dependency Changes
Test Code