전남대 FE_정서윤 4주차 과제 STEP3#55
Open
yunn23 wants to merge 18 commits intokakao-tech-campus-2nd-step2:yunn23from
Open
전남대 FE_정서윤 4주차 과제 STEP3#55yunn23 wants to merge 18 commits intokakao-tech-campus-2nd-step2:yunn23from
yunn23 wants to merge 18 commits intokakao-tech-campus-2nd-step2:yunn23from
Conversation
taehwanno
requested changes
Jul 19, 2024
taehwanno
left a comment
There was a problem hiding this comment.
피드백 드려요! 새로운 라이브러리 사용시 공식문서를 전반적으로 숙지하고 활용하는게 좋겠습니다. 한번에 모든 걸 이해하기는 어렵겠지만 라이브러리에서 사용하시는 API에 한해서는 찬찬히 읽어보는게 더 느린 것처럼 보여도 시간적으로 보면 오히려 더 이득인 선택일 때가 많더라구요.
Author
|
step3 피드백 확인 후 모두 반영하여 수정하였습니다. |
This file contains hidden or 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
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.
4주차 과제 STEP3 제출합니다.
기존의 input/form을 react-hook-form을 사용하여 재구성하였습니다.
질문 : [카드 메세지를 작성하고 현금 영수증을 체크하지 않은 경우]와 [카드메세지를 작성하고 현금영수증을 체크하고 휴대폰 번호를 적은 경우] 위 두 상태에 대해 주문이 접수되었다는 alert()를 띄우려고 onSubmit() 내부에 조건문을 작성하였는데, 처음에 1번 경우로 제출한 경우에는 제대로 제출되지 않는 것 같습니다. (주문시 콘솔이 찍히지 않고, alert()도 안 뜸) 2번으로 한 번 제출한 후에는 1번 경우에도 alert()가 뜨는데, 처음에 1번 경우가 alert()가 뜨지 않는 이유가 궁금합니다..! validation 자체는 잘 되는것으로 확인됩니다.