Skip to content

Basic 이석우 sprint mission 4 (V2) 제출#50

Open
dolby527 wants to merge 11 commits intocodeit-sprint-fullstack:basicfrom
dolby527:basic-이석우

Hidden character warning

The head ref may contain hidden characters: "basic-\uc774\uc11d\uc6b0"
Open

Basic 이석우 sprint mission 4 (V2) 제출#50
dolby527 wants to merge 11 commits intocodeit-sprint-fullstack:basicfrom
dolby527:basic-이석우

Conversation

@dolby527
Copy link
Collaborator

안녕하세요?
아직 익숙하지 못해 component를 어떻게 분할 구분해야 할지 판단이 잘 안되고, 파일을 만들었다 지웠다만 계속하게 되었습니다.
코드 관련 이전/이후 계속 사용 가능성에 대해서도 잘 파악되지 못하여 미션가이드만 맞추는 수준에서 작성하였습니다.

@Y00JUNG Y00JUNG requested a review from reach0908 December 31, 2025 02:43
@dolby527 dolby527 self-assigned this Jan 4, 2026
@reach0908
Copy link
Collaborator

Copy link
Collaborator

@reach0908 reach0908 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아직 감이 잘 안오신다면 오늘 멘토링에서 알려드린 다양한 방식들을 통해 많은 react 코드를 보거나 하나의 작은 프로젝트를 기반으로

react의 경우 공식문서가 정말 잘되어있습니다! 해당 사이트를 천천히 읽어보시면 좋을 것 같아요!

우선 컴포넌트에 대한 기본적인 부분과 이번 미션의 hook의 개념에 대해서 먼저 공부하시는 걸 추천드립니다!

import ItemCard from './ItemCard';
import styles from './Market.module.css';

const API_URL = 'https://panda-market-api.vercel.app/products';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른 곳에서 사용될 수 있으니 .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);
})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try catch 내에서 .then.catch를 사용하면 다시 throw를 하지않는 이상 외부의 try catch 에서 에러를 잡을 수 없습니다. 두 에러 핸들링 방식 중 한가지방식으로 통일하면 좋을 것 같아요

@yongsub-lee yongsub-lee closed this Jan 9, 2026
@dolby527 dolby527 reopened this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants