Skip to content

Conversation

@immhyemi
Copy link
Collaborator

πŸ“ λ―Έμ…˜ 번호

1μ£Όμ°¨ Misson 1

πŸ“‹ κ΅¬ν˜„ 사항

  • Typescriptλ₯Ό μ΄μš©ν•œ νˆ¬λ‘λ¦¬μŠ€νŠΈ κ΅¬ν˜„

πŸ“Ž μŠ€ν¬λ¦°μƒ·

μŠ€ν¬λ¦°μƒ· 2025-03-23 002324

βœ… 체크리슀트

  • βœ… Merge ν•˜λ €λŠ” λΈŒλžœμΉ˜κ°€ μ˜¬λ°”λ₯΄κ²Œ μ„€μ •λ˜μ–΄ μžˆλ‚˜μš”?
  • βœ… λ‘œμ»¬μ—μ„œ μ‹€ν–‰ν–ˆμ„ λ•Œ μ—λŸ¬κ°€ λ°œμƒν•˜μ§€ μ•Šλ‚˜μš”?
  • βœ… λΆˆν•„μš”ν•œ 주석이 μ œκ±°λ˜μ—ˆλ‚˜μš”?
  • βœ… μ½”λ“œ μŠ€νƒ€μΌμ΄ μΌκ΄€μ μΈκ°€μš”?

πŸ€” 질문 사항

@hyesngy hyesngy self-requested a review March 23, 2025 14:47
Copy link
Member

@hyesngy hyesngy left a comment

Choose a reason for hiding this comment

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

고생 ν•˜μ…¨μŠ΅λ‹ˆλ‹€! πŸ‘πŸ‘ κ°•μ˜ μ˜μƒμ„ μ°Έκ³ ν•˜μ—¬ κ΅¬ν˜„ν•΄μ£Όμ‹  것 같은데, 직접 κ΅¬ν˜„ν•΄λ³΄λŠ” μ‹œκ°„λ„ κ°€μ§€λ©΄ 크게 도움이 될 것 μž…λ‹ˆλ‹€!

이번 μ£Όμ°¨ μ›Œν¬λΆμ„ 톡해 Reactμ—μ„œ 자주 μ‚¬μš©λ˜λŠ” ts 문법에 λŒ€ν•΄ λͺ…ν™•ν•˜κ²Œ μ΄ν•΄ν•˜κ³  λ„˜μ–΄κ°ˆ 수 μžˆμ—ˆμœΌλ©΄ μ’‹κ² μŠ΅λ‹ˆλ‹€πŸ‘πŸ‘

Copy link
Member

Choose a reason for hiding this comment

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

이 νŒŒμΌμ€ vscode μ„€μ • κ΄€λ ¨ νŒŒμΌμ΄λ―€λ‘œ μ§€μ›Œμ£Όμ„Έμš”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€ λ°°μ› λ˜ κ°œλ… 기반으둜 μ‹€μŠ΅ λ°˜λ³΅ν•΄λ³΄λ©° 혼자 힘으둜 κ΅¬ν˜„ν•  수 μžˆλ„λ‘ λ°œμ „ν•˜κ² μŠ΅λ‹ˆλ‹€!!

@immhyemi immhyemi merged commit 17b537f into main Mar 25, 2025
Copy link
Member

@hyesngy hyesngy left a comment

Choose a reason for hiding this comment

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

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€ πŸ‘πŸ»πŸ‘πŸ»

이번 μ£Όμ°¨μ—μ„œ ν•™μŠ΅ν•œ useState, Context APIλ₯Ό μ•žμœΌλ‘œλ„ 잘 ν™œμš©ν•  수 μžˆμ—ˆμœΌλ©΄ μ’‹κ² μŠ΅λ‹ˆλ‹€!

Comment on lines +11 to +19
// πŸ”₯ TodoContextμ—μ„œ μ „μ—­ μƒνƒœ 및 ν•¨μˆ˜ κ°€μ Έμ˜€κΈ°
const todoContext = useContext(TodoContext);

if (!todoContext) {
console.error("❌ TodoContextκ°€ undefinedμž…λ‹ˆλ‹€.");
return <div>Contextλ₯Ό 뢈러올 수 μ—†μŠ΅λ‹ˆλ‹€.</div>;
}

const { todos, doneTodos, addTodo, completeTodo, deleteTodo } = todoContext;
Copy link
Member

Choose a reason for hiding this comment

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

이 뢀뢄을 TodoContext.tsxμ—μ„œ λ§Œλ“  μ»€μŠ€ν…€ν›… useTodoContext을 μ‚¬μš©ν•˜λ©΄ 더 κ°„κ²°ν•  것 κ°™μ•„μš”!

Comment on lines +35 to +43
const handleComplete = (todo: TTodo) => {
console.log("βœ… completeTodo 호좜됨:", todo);
completeTodo(todo);
};

const handleDelete = (todo: TTodo) => {
console.log("πŸ—‘οΈ deleteTodo 호좜됨:", todo);
deleteTodo(todo);
};
Copy link
Member

Choose a reason for hiding this comment

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

이 λΆ€λΆ„μ—μ„œ λ‘œκΉ… μ™Έμ—λŠ” μΆ”κ°€ κΈ°λŠ₯ 없이 Context의 ν•¨μˆ˜λ₯Ό κ·ΈλŒ€λ‘œ 호좜만 ν•˜κ³  μžˆμ–΄, λΉ„νš¨μœ¨μ μœΌλ‘œ λ³΄μž…λ‹ˆλ‹€. 이 뢀뢄을 μ œκ±°ν•˜κ³ , μ•„λž˜μ˜ TodoList에 직접 Context ν•¨μˆ˜λ₯Ό μ „λ‹¬ν•˜λ©΄ κ°„κ²°ν•˜κ³  효율적일 것 κ°™μ•„μš”!

Copy link
Member

Choose a reason for hiding this comment

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

이 νŒŒμΌλ„ 기쑴의 νŒŒμΌμ΄λ―€λ‘œ μ œκ±°ν•΄μ£Όμ„Έμš”!

Copy link
Member

Choose a reason for hiding this comment

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

이 νŒŒμΌλ„ μ§€λ‚œ μ£Όμ°¨ νŒŒμΌκ°™μ€λ°, 제거 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€!

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