Basic 이석우 sprint mission 4 (V2) 제출#50
Open
dolby527 wants to merge 11 commits intocodeit-sprint-fullstack:basicfrom
Hidden character warning
The head ref may contain hidden characters: "basic-\uc774\uc11d\uc6b0"
Open
Basic 이석우 sprint mission 4 (V2) 제출#50dolby527 wants to merge 11 commits intocodeit-sprint-fullstack:basicfrom
dolby527 wants to merge 11 commits intocodeit-sprint-fullstack:basicfrom
Conversation
Collaborator
|
✅ |
reach0908
approved these changes
Jan 7, 2026
Collaborator
reach0908
left a comment
There was a problem hiding this comment.
아직 감이 잘 안오신다면 오늘 멘토링에서 알려드린 다양한 방식들을 통해 많은 react 코드를 보거나 하나의 작은 프로젝트를 기반으로
react의 경우 공식문서가 정말 잘되어있습니다! 해당 사이트를 천천히 읽어보시면 좋을 것 같아요!
우선 컴포넌트에 대한 기본적인 부분과 이번 미션의 hook의 개념에 대해서 먼저 공부하시는 걸 추천드립니다!
| import ItemCard from './ItemCard'; | ||
| import styles from './Market.module.css'; | ||
|
|
||
| const API_URL = 'https://panda-market-api.vercel.app/products'; |
Collaborator
There was a problem hiding this comment.
다른 곳에서 사용될 수 있으니 .env와 같은 환경변수로 중앙에서 관리하면 좋습니다!
Comment on lines
+182
to
+199
| try { | ||
| getArticleList({ | ||
| page: 1, | ||
| pageSize: 50, | ||
| }) | ||
| .then((data) => { | ||
| const found = data.list.find( | ||
| (article) => article.title === "[TEST-dolby] 테스트 게시글" | ||
| ); | ||
| if (!found) { | ||
| console.log("테스트 게시글을 찾지 못했습니다."); | ||
| testArticleId = null; | ||
| return; | ||
| } | ||
|
|
||
| testArticleId = found.id; | ||
| console.log("테스트 게시글 찾음", found); | ||
| }) |
Collaborator
There was a problem hiding this comment.
try catch 내에서 .then.catch를 사용하면 다시 throw를 하지않는 이상 외부의 try catch 에서 에러를 잡을 수 없습니다. 두 에러 핸들링 방식 중 한가지방식으로 통일하면 좋을 것 같아요
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.
안녕하세요?
아직 익숙하지 못해 component를 어떻게 분할 구분해야 할지 판단이 잘 안되고, 파일을 만들었다 지웠다만 계속하게 되었습니다.
코드 관련 이전/이후 계속 사용 가능성에 대해서도 잘 파악되지 못하여 미션가이드만 맞추는 수준에서 작성하였습니다.