Open
Conversation
lastro1206
commented
May 18, 2025

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