-
Notifications
You must be signed in to change notification settings - Fork 39
[윤진우] Sprint6 #177
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
[윤진우] Sprint6 #177
The head ref may contain hidden characters: "React-\uC724\uC9C4\uC6B0-sprint6"
Conversation
GANGYIKIM
left a comment
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.
진우님 6주차 미션 작업 고생하셨습니다!
프로젝트가 끝나자마자 작업을 하신것 같아요. 대단하네요~
제가 생각하기에 도움이 될 만한 부분에 대해 코멘트 드렸습니다.
다음 주차도 화이팅입니다!
- 질문주신 인풋 가격 formatting 및 cursor의 경우 제가 확인해보니, 한글 입력할 때 외에도 cursor 동작이 이상한 부분이 있었습니다. 우선 이를 수정하셔야 말씀하시는 동작상 문제가 더 잘 이해될 것 같아요. React의 경우 작업해주신 코드처럼 input 의 selectionStart, selectionEnd 를 바꿔주는 것으로는 원하시는 동작을 구현하실 수 없습니다! 관련해 글들을 남겨드리니 확인해보세요.
StackOverflow
KeepInputCursorStill
| import Pagination from "../Pagination/Pagination.jsx"; | ||
| import "./AllItems.css"; | ||
|
|
||
| import useDetectClose from "../../../../hooks/useDetectClose.jsx"; |
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.
💊 제안
아마 IDE의 auto Import 기능을 이용하실 것 같지만, 아니라면 참고해주세요.
지금처럼 상대 경로는 파일 위치가 바뀔 때마다 수정해야 하고 해당 파일의 정확한 위치를 파악하기 어렵습니다.
(root에 가까운 hooks 폴더인지, 현재 페이지에서 사용하는 hook들을 모아둔 hooks 폴더인지 구분이 어렵습니다.)
이럴 때 프로젝트 루트에 alias를 설정해 import useDetectClose from 'hooks/useDetectClose', import useDetectClose from '@/hooks/useDetectClose' 와 같이 간결하게 작성해보세요~
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.
💊 제안
드롭다운도 components 폴더로 빼시면 학습적 측면에서도 forwardRef도 써보시고 더 좋을 것 같아요~
| setImageUrl(null); | ||
| } | ||
|
|
||
| function handleChange(e, input) { |
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.
❗️ 수정요청
지금은 하나의 함수에서 너무 많은 역학을 담당하고 있습니다~
다른 코멘트에 달아드린 reducer를 참고해서 리팩토링 해보시거나 역할에 대해 고민해보시고 분리해보시면 좋겠습니다.
요구사항
기본
심화
주요 변경사항
/additem페이지 추가스크린샷
페이지 주소 : https://panda-market-yun.netlify.app/
🖥️ PC
📲Tablet
📱Mobile
멘토에게