-
Notifications
You must be signed in to change notification settings - Fork 35
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
[김종화] sprint8 #238
The head ref may contain hidden characters: "React-\uAE40\uC885\uD654"
[김종화] sprint8 #238
Conversation
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.
과제하느라 고생하셨습니다! 타입 지정 잘해주셨네요 👍
@@ -16,7 +16,13 @@ const Button = styled.button` | |||
} | |||
`; | |||
|
|||
function DeleteButton({ onClick, label }) { | |||
function DeleteButton({ |
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.
props의 타입은 따로 선언해서 사용해주셔도 좋습니다.
@@ -3,7 +3,18 @@ import "./PaginationBar.css"; | |||
import { ReactComponent as LeftArrow } from "../../assets/images/icons/arrow_left.svg"; |
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.
alias path를 사용해보시는 것도 추천드립니다.
@@ -59,6 +66,7 @@ function TagInput({ tags, onAddTag, onRemoveTag }) { | |||
onChange={(e) => setInput(e.target.value)} | |||
onKeyDown={onPressEnter} | |||
placeholder="태그를 입력해 주세요" | |||
isTextArea={undefined} |
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.
이런 경우는 isTextArea를 전달해주시지 않아도 됩니다.
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 [name, setName] = useState<string>(""); | ||
const [description, setDescription] = useState<string>(""); | ||
const [price, setPrice] = useState<string>(""); | ||
const [tags, setTags] = useState<string[]>([]); |
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.
관련 있는 상태들은 하나로 묶어서 객체로 관리하시는 방법도 있습니다.
요구사항
기본
주요 변경사항
스크린샷
멘토에게