Skip to content

[week6][이진서] 과제 제출#20

Open
JINSEO0201 wants to merge 2 commits intojinseo-week6from
jinseo
Open

[week6][이진서] 과제 제출#20
JINSEO0201 wants to merge 2 commits intojinseo-week6from
jinseo

Conversation

@JINSEO0201
Copy link

💎 과제 구현 설명

과제를 위해 사용했던 함수, 수정한 파일 등 구현 내용에 대한 간단한 설명을 작성해 주세요.

🏁 PR 체크리스트

  • [0] 코드가 오류 없이 정상적으로 실행되나요?
  • [0] 커밋 메시지 컨벤션(템플릿 활용)을 준수했나요?
  • [0] 과제 마감기한을 준수했나요?

🖼️ Screenshot / Video

스크린샷 2024-05-02 220439
스크린샷 2024-05-02 220458

🙌 Issue

과제 수행 중 어려웠던 부분이나 궁금했던 점을 자유롭게 작성해 주세요.

Copy link

@unknownburphy unknownburphy left a comment

Choose a reason for hiding this comment

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

전체적으로 아주 잘 짜신 것 같아요. LGTM!

}
)
// ### TO DO ###
console.log(response)

Choose a reason for hiding this comment

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

PR을 날릴 때 이런 console.log 들은 정리하시는 습관을 들이는게 좋습니다!

className={`object-cover w-full h-full border-[3px] border-[#FF6841] rounded-xl
className={`object-cover w-full h-full border-[3px] rounded-xl
### FILL ME ###
${img.value > 0 ? "border-red-600" : "border-blue-600"}

Choose a reason for hiding this comment

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

삼항연산자를 활용해 잘 처리하신 것 같습니다!

Comment on lines +65 to +76
const imageOne = data.map((e) => {
return e.url;
});

const voteIdOne = data.map((e) => {
return e.id;
});
console.log(voteIdOne);

setVoteId(voteIdOne);

setImage(imageOne);

Choose a reason for hiding this comment

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

두 개를 각각 처리하지 않고 dict를 활용해 한번에 처리할 수도 있을 것 같네요! useState도 하나만 써서 말이죠. 이렇게 하면 불필요한 변수 사용을 줄일 수 있습니다!

Copy link

@minseo25 minseo25 left a comment

Choose a reason for hiding this comment

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

전체적으로 깔끔하게 코드를 잘 짜신 것 같습니다!
console.log() 만 정리하면 완벽할 것 같아요~~

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.

5 participants