Skip to content

Commit f0ef782

Browse files
nh0627hg-pyun
andauthored
Update content/docs/reference-react-component.md
Co-authored-by: Haegul Pyun <phg2491@gmail.com>
1 parent d7fd053 commit f0ef782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/reference-react-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class ErrorBoundary extends React.Component {
408408

409409
리액트의 `componentDidCatch()`가 오류를 처리하는 방식은 프로덕션과 개발 빌드가 약간 다릅니다.
410410

411-
개발 빌드에서, 오류는 `window`까지 전파됩니다. 이는 `window.onerror``window.addEventListener('error', callback)` `componentDidCatch()` 잡은 오류를 인터셉트할 것이란 의미입니다.
411+
개발 빌드에서, 오류는 `window`까지 전파됩니다. 이는 `window.onerror``window.addEventListener('error', callback)` `componentDidCatch()`에서 잡은 오류를 인터셉트하는 것을 의미합니다.
412412

413413
그러나 프로덕션 빌드에서 오류는 전파되지 않습니다. 즉 상위 오류 핸들러는 `componentDidCatch()`에 의해 명시적으로 잡히지 않은 오류만 받을 것입니다.
414414

0 commit comments

Comments
 (0)