Skip to content

Conversation

@jiyoung02
Copy link
Owner

@jiyoung02 jiyoung02 commented Sep 23, 2025

  • 투두리스트 만들기
  • 에러나서 그냥 새로 팠습니다...!

Copy link

@jpark0506 jpark0506 left a comment

Choose a reason for hiding this comment

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

아침에 말해주고 싶은게 많았는데 까먹었어요.. 이 두개 질문만 답해보고 머지합시다.

  1. props와 state의 차이점이 뭘까요?
  2. 만약 부모의 state를 자식이 조정해야한다면, 어떻게 할까요?

Comment on lines +9 to +11

node_modules
dist

Choose a reason for hiding this comment

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

노드 모듈을 빼다니 우수하네요

<input
type="text"
value={input}
onChange={(e): void => setInput(e.target.value)}

Choose a reason for hiding this comment

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

타입 추론이 되는건 표시하지 않아도 괜찮아요~

(e) : void <- 이런거

const TodoForm = ({ addTodo }: Props): JSX.Element => {
const [input, setInput] = useState<string>("");
const handleSubmit = (e: FormEvent<HTMLFormElement>): void => {
e.preventDefault();

Choose a reason for hiding this comment

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

이건 왜 사용할까요?? (빼라는거 아님)

@jpark0506
Copy link

이거 머지 부탁드릴게여 계속 리뷰해야한다고 떠서

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.

3 participants