Open
Conversation
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.
👽 과제 명세
💡 기본 과제
(userId 저장 위치는 자유. localStorage, SessionStorage, ...)
(username(아이디), password, name(이름), email(이메일), age(나이))
🔥 심화 과제
1. 길이 8~64자
2. 대문자/소문자/숫자/특수문자 각각 1자 이상 포함
3. 공백 불허
공유과제
제목: 폰트 최적화
링크 첨부 : https://peach-shadow-378.notion.site/2b0d94ad82bb80818138dc6b59dd87d8
🔧 구현 요약 및 새로 배운 점
🥲 구현 과정에서 어려웠던 & 고민했던 부분
먼저 form을 재사용 높은 컴포넌트를 만들기 위해 고민했습니다. 기본 버튼이나 하단 로그인하러가기 버튼, 뒤로가기 버튼 등 어떻게하면 재사용 높은 컴포넌트가 될지 고민하고 구현했습니다.
react-hook-form 과 zod를 사용해서 유효성 검사를 했는데 쉽지 않았습니다! 유효성 검사 시점과 비밀번호 및 비밀번호 확인 비교 로직 등이 꼬여 시간을 많이 할애했었습니다.
🔭 리뷰 요청 포인트 & 질문
현재는 user의 정보를 전역으로 관리하고 있는데 이 방법이 맞을지, 더 좋은 방법이 있는지 궁금합니다! 처음에는 마이페이지 헤더에서만 사용되는 줄 알고 헤더로 연결했었는데, 마이페이지 내 내 정보를 불러오기 때문에 전역으로 저장해서 사용하는 것이 더 합리적 방안이라고 생각했습니다. 하지만 다른 분들은 어떤 생각을 가지고 구현하셨는지 궁금합니다!
또한 이번 과제에서는 재사용 높은 컴포넌트 만들기(label, authform)에 신경을 썼는데, 그 부분에 보완점이 있을지 피드백 부탁드립니다!
📷 결과물
회원가입
2025-11-19.8.43.57.mov
로그인
2025-11-19.8.59.30.mov
마이페이지
2025-11-19.9.00.17.mov
마이페이지 멤버 조회
2025-11-19.9.00.57.mov
로그아웃 및 탈퇴
2025-11-19.9.01.21.mov