e.stopPropagation();

https://pa-pico.tistory.com/20
[개념잡기] e.preventDefault() 와 stopPropagation() 의 차이
stopPropogation vs preventDefault e.preventDefault()와 e.stopPropagation()의 차이 두개의 코드 모두 이벤트 관련 동작에서 많이 사용되는 코드이다. 둘의 차이점은 무엇일까 알아보자. e.preventDefault() html 에서 a
pa-pico.tistory.com
'Framework > React' 카테고리의 다른 글
[React] React 시간 관련 무한 루프 버그 해결기 (0) | 2025.04.16 |
---|---|
[React] useState setState 타입 설정 (0) | 2025.04.03 |
[React] useMutation 콜백 옵션(isSuccess에서 variables 등등까지) (0) | 2025.02.04 |
[React] useRef 응용 - toggle기능 만들기 (1) | 2025.02.04 |
[React] 카카오톡 메세지 공유하기 (0) | 2025.01.13 |