Skip to content

Commit

Permalink
Update componentDidCatch argument name like demo (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
behnammodi authored and lex111 committed Aug 12, 2019
1 parent 176e85f commit 8cd5737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/error-boundaries.md
Expand Up @@ -36,9 +36,9 @@ class ErrorBoundary extends React.Component {
return { hasError: true };
}
componentDidCatch(error, info) {
componentDidCatch(error, errorInfo) {
// You can also log the error to an error reporting service
logErrorToMyService(error, info);
logErrorToMyService(error, errorInfo);
}
render() {
Expand Down

0 comments on commit 8cd5737

Please sign in to comment.