Target

JS e.target vs e.currentTarget (미스터리 해결기...)
카드 목록에서 카드를 클릭했을 때 해당 카드의 id를 넘겨주어 위치를 변경하는 코드를 짜던 중 ㄹㅇ 의문스러운 일이 일어났다. 이 목록에서 각 presentation의 id는 1, 2, 3이다. 클릭했을 때 `/presentation/summary?presentation_id=${currentId}`로 위치를 변경했디. const navigateToPresentation = (e) => { const currentId = e.target.id; navigate(`/presentation/summary?presentation_id=${currentId}`); }; {presentationList.map((p) => ( {p.title} {p.date} ))} 위 코드로 카드를 클릭했을 때 navigateT..