Skip to content

Commit 0d59fa3

Browse files
QC-LLCINA
andauthored
Update content/docs/error-boundaries.md
Co-Authored-By: LCINA <870206584@qq.com>
1 parent ae13c1a commit 0d59fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/error-boundaries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ class MyComponent extends React.Component {
161161

162162
## 自 React 15 的命名更改 {#naming-changes-from-react-15}
163163

164-
React 15 中有一个支持有限的错误边界方法 `unstable_handleError`。此方法不再起作用,同时自 React 16 beta 发布起你需要在代码中将其修改为 `componentDidCatch`
164+
React 15 中有一个支持有限的错误边界方法 `unstable_handleError`。此方法不再起作用,同时自 React 16 beta 发布起你需要在代码中将其修改为 `componentDidCatch`
165165

166166
对此,我们已提供了一个 [codemod](https://github.com/reactjs/react-codemod#error-boundaries) 来帮助你自动迁移你的代码。

0 commit comments

Comments
 (0)