Skip to content

Commit 19c0fe2

Browse files
authored
fix componentdidcatch (#6107)
1 parent 505f651 commit 19c0fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/Component.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ We recommend using [TypeScript](https://www.typescriptlang.org/) instead of chec
10101010

10111011
If you define `static getDerivedStateFromError`, React will call it when a child component (including distant children) throws an error during rendering. This lets you display an error message instead of clearing the UI.
10121012

1013-
Typically, it is used together with [`componentDidCatch`](#componentDidCatch) which lets you send the error report to some analytics service. A component with these methods is called an *error boundary.*
1013+
Typically, it is used together with [`componentDidCatch`](#componentdidcatch) which lets you send the error report to some analytics service. A component with these methods is called an *error boundary.*
10141014

10151015
[See an example.](#catching-rendering-errors-with-an-error-boundary)
10161016

0 commit comments

Comments
 (0)