-
Notifications
You must be signed in to change notification settings - Fork 38
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
[나윤주] sprint7 #231
The head ref may contain hidden characters: "React-\uB098\uC724\uC8FC-sprint7"
[나윤주] sprint7 #231
Conversation
…rint-Mission into React-나윤주-sprint7
try { | ||
const products = await getProducts({ orderBy, page, pageSize }); | ||
setProducts(products.list); | ||
setTotalPageNum(Math.ceil(products.totalCount / pageSize)); |
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.
p4;
totalPageNum은 products와 pageSize를 deps로 가지는 useMemo로 관리해도 좋을 것 같아요!
return product.trim() !== '' && content.trim() !== '' && price !== 0 && tag.length > 0; | ||
}, [values]); | ||
|
||
const handleChange = useCallback((name, value) => { |
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.
p4;
handleChangeFormValues 등의 함수명이면 더 직관적일 것 같아요!
요정도만 해도 잘하셨어요! 앞으로 프로젝트에서 요렇게 연습하셨던게 도움이 많이 될거에요! hook도 잘 작성하셨어요! |
스프린트 7미션
요구사항
기본
상품 상세
=> favoriteCount : 하트 개수
=> images : 상품 이미지
=> tags : 상품태그
=> name : 상품 이름
=> description : 상품 설명
상품 문의 댓글
=> image : 작성자 이미지
=> nickname : 작성자 닉네임
=> content : 작성자가 남긴 문구
=> description : 상품 설명
=> updatedAt : 문의글 마지막 업데이트 시간
스크린샷
멘토에게