Skip to content

Commit bd07093

Browse files
authored
Update componentDidCatch argument name like demo
1 parent 4b8aa88 commit bd07093

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)