Skip to content

Commit 8cd5737

Browse files
behnammodilex111
authored andcommitted
Update componentDidCatch argument name like demo (#2180)
1 parent 176e85f commit 8cd5737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/error-boundaries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class ErrorBoundary extends React.Component {
3636
return { hasError: true };
3737
}
3838
39-
componentDidCatch(error, info) {
39+
componentDidCatch(error, errorInfo) {
4040
// You can also log the error to an error reporting service
41-
logErrorToMyService(error, info);
41+
logErrorToMyService(error, errorInfo);
4242
}
4343
4444
render() {

0 commit comments

Comments
 (0)