-
Notifications
You must be signed in to change notification settings - Fork 24
7주차 홍석준 과제 완료 #4
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
base: main
Are you sure you want to change the base?
Conversation
lastro1206
commented
May 18, 2025

|
처음 커밋 진행할 때 clone이 제대로 되어 있지 않아서 clone 다시하고 제출했습니다! |
seunghui-park
left a comment
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.
과제하느라 고생 많으셨습니다 :)
8주차 팀플 팟팅 ~~ 💪🏻
| const code = weatherData?.current_weather?.weathercode; | ||
|
|
||
| return ( | ||
| <div> |
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.
여기 div로 안묶어줘도 될 거 같아요
| const CurrentWeather = ({ weatherData, isLoading }) => { | ||
| if (isLoading) { | ||
| return <div>채워주세요</div>; | ||
| return <div>로딩 중...</div>; |
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.
메세지 하드 코딩보다는 별도 컴포넌트를 두면 더 좋을 듯 합니당
|
|
||
| const HourlyForecast = ({ weatherData }) => { | ||
| const hourlyData = formatHourlyData(weatherData); | ||
| const hourlyData = formatHourlyData(weatherData).slice(0, 12); |
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.
여기서는 크게 상관 없을 수 있지만,
여러 곳에서 사용 되거나 로직 상 의미가 있거나 자주 변경될 가능성이 있는 값은 상수 분리를 하는 게 좋습니다! 다음부터는 상수 분리에 대한 고민도 하면서 구현하시면 좋을 것 같습니당
|
아 그리고 다음 제출에는 석준님 레포에서 main 으로 머지하고 PR 날려주세여 ~~ |