mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-27 03:08:06 +00:00
Update componentDidCatch argument name like demo (#2180)
This commit is contained in:
committed by
Alexey Pyltsyn
parent
176e85f4d5
commit
8cd5737ba1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user