[FE] fix: Checkbox의 onChange 이벤트 핸들러가 전달되지 않는 버그 수정 #367
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.
🚀 어떤 기능을 구현했나요 ?
onChange
에서handleChange
로 변경하면서rest
props를 통해 핸들러가 전달되지 않던 문제를 해결했습니다.🔥 어떻게 해결했나요 ?
input
에 명시적으로 handleChange를 전달했습니다.📝 어떤 부분에 집중해서 리뷰해야 할까요?
📚 참고 자료, 할 말
rest
에 대한 이해가 부족했습니다. 핸들러를rest
로 전달하고 있으니까 핸들러 이름이 변경되어도 괜찮을 거라고 생각했는데 기본 속성이 아니라 명시적으로 전달해줘야 했습니다.