Skip to content

7주차 홍석준 과제 완료#4

Open
lastro1206 wants to merge 4 commits intoTEAM-ALOM:mainfrom
lastro1206:feature/homework
Open

7주차 홍석준 과제 완료#4
lastro1206 wants to merge 4 commits intoTEAM-ALOM:mainfrom
lastro1206:feature/homework

Conversation

@lastro1206
Copy link
Copy Markdown

screencapture-localhost-3000-2025-05-18-12_48_29

@lastro1206
Copy link
Copy Markdown
Author

처음 커밋 진행할 때 clone이 제대로 되어 있지 않아서 clone 다시하고 제출했습니다!

Copy link
Copy Markdown
Member

@seunghui-park seunghui-park left a comment

Choose a reason for hiding this comment

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

과제하느라 고생 많으셨습니다 :)
8주차 팀플 팟팅 ~~ 💪🏻

const code = weatherData?.current_weather?.weathercode;

return (
<div>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

여기 div로 안묶어줘도 될 거 같아요

const CurrentWeather = ({ weatherData, isLoading }) => {
if (isLoading) {
return <div>채워주세요</div>;
return <div>로딩 중...</div>;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

메세지 하드 코딩보다는 별도 컴포넌트를 두면 더 좋을 듯 합니당


const HourlyForecast = ({ weatherData }) => {
const hourlyData = formatHourlyData(weatherData);
const hourlyData = formatHourlyData(weatherData).slice(0, 12);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

여기서는 크게 상관 없을 수 있지만,
여러 곳에서 사용 되거나 로직 상 의미가 있거나 자주 변경될 가능성이 있는 값은 상수 분리를 하는 게 좋습니다! 다음부터는 상수 분리에 대한 고민도 하면서 구현하시면 좋을 것 같습니당

@seunghui-park
Copy link
Copy Markdown
Member

아 그리고 다음 제출에는 석준님 레포에서 main 으로 머지하고 PR 날려주세여 ~~

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.

2 participants