Skip to content

Commit a2cb73c

Browse files
committed
update-responding-to-events.md
1 parent c266e87 commit a2cb73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/responding-to-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ button { margin: 5px; }
427427
드물게 *전파가 중단된 상황일지라도* 자식 컴포넌트의 모든 이벤트를 캡처해 확인해야 할 수 있습니다. 일례로, 분석을 위해 전파 로직에 상관 없이 모든 클릭 이벤트를 기록하고 싶을 수 있습니다. 이를 위해서는 이벤트명 마지막에 `Capture`를 추가하면 됩니다.
428428
429429
```js
430-
<div onClickCapture={() => { /* this runs first */ }}>
430+
<div onClickCapture={() => { /* 가장 먼저 실행됩니다 */ }}>
431431
<button onClick={e => e.stopPropagation()} />
432432
<button onClick={e => e.stopPropagation()} />
433433
</div>

0 commit comments

Comments
 (0)