-
Notifications
You must be signed in to change notification settings - Fork 0
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
[4주차 기본과제] 날씨 페이지 만들기 #9
base: main
Are you sure you want to change the base?
Conversation
onChange={handleChange} | ||
type="text" | ||
/> | ||
<button type="submit">검색</button> |
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.
그 검색 창에 적은 게 사라진다고 했던게 원래 input요소는 value 속성에 값이 바인딩되면 사용자가 입력한 값이 변경되어도 해당 값이 살아있는데 form안에서는 초기화 된다네!! 글서 만약 남아있게 하려면 useState로 값을 searchText 값을 저장해서 사용해야하지 않을까.... 생각헤,........!!
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.
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.
}); | ||
setWeatherData(weekWeatherData); | ||
break; | ||
} |
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.
오 이렇게 아예 한 컴포넌트에 switch문으로 case 나눠서 전달해줬구나,,,! 완전 새로운 방법인데?!
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>날씨페이지</title> | ||
</head> |
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.
title 바꿔준 거 넘 센스굿~!!
✨ 구현 기능 명세
✅
기상 카드
✅
일간 / 주간 + 지역(영어)검색
✅
Outlet + Route
🌼 PR Point
🥺 소요 시간, 어려웠던 점
16h
🌈 구현 결과물
2023-05-15.10.12.06.mov