Skip to content

Commit 6356c12

Browse files
authored
Fix Error Boundary implementation details in documentation
1 parent eeaa100 commit 6356c12

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/content/reference/react/Component.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,9 +1271,6 @@ button { margin-left: 10px; }
12711271
12721272
기본적으로 애플리케이션이 렌더링 도중 에러를 발생시키면 React는 화면에서 해당 UI를 제거합니다. 이를 방지하기 위해 UI의 일부를 *Error Boundary*로 감싸면 됩니다. Error Boundary는 에러가 발생한 부분 대신 오류 메시지와 같은 Fallback UI를 표시할 수 있는 특수 컴포넌트입니다.
12731273
1274-
<<<<<<< HEAD
1275-
Error Boundary 컴포넌트를 구현하려면 오류에 대한 응답으로 State를 업데이트하고 사용자에게 오류 메시지를 표시할 수 있는 [`static getDerivedStateFromError`](#static-getderivedstatefromerror)를 제공해야 합니다. 또한 선택적으로 [`componentDidCatch`](#componentdidcatch)를 구현하여 분석 서비스에 오류를 기록하는 등의 추가 로직을 추가할 수도 있습니다.
1276-
=======
12771274
<Note>
12781275
Error boundaries do not catch errors for:
12791276
@@ -1284,8 +1281,7 @@ Error boundaries do not catch errors for:
12841281
12851282
</Note>
12861283
1287-
To implement an Error Boundary component, you need to provide [`static getDerivedStateFromError`](#static-getderivedstatefromerror) which lets you update state in response to an error and display an error message to the user. You can also optionally implement [`componentDidCatch`](#componentdidcatch) to add some extra logic, for example, to log the error to an analytics service.
1288-
>>>>>>> f9e2c1396769bb5da87db60f9ff03683d18711e2
1284+
Error Boundary 컴포넌트를 구현하려면 오류에 대한 응답으로 State를 업데이트하고 사용자에게 오류 메시지를 표시할 수 있는 [`static getDerivedStateFromError`](#static-getderivedstatefromerror)를 제공해야 합니다. 또한 선택적으로 [`componentDidCatch`](#componentdidcatch)를 구현하여 분석 서비스에 오류를 기록하는 등의 추가 로직을 추가할 수도 있습니다.
12891285
12901286
With [`captureOwnerStack`](/reference/react/captureOwnerStack) you can include the Owner Stack during development.
12911287

0 commit comments

Comments
 (0)