interface BaseErrorBoundaryState {
    hasError: boolean;
    error: null | Error;
    errorInfo: null | ErrorInfo;
}

Properties

hasError: boolean

Indicates whether an error has been caught

error: null | Error

The caught error object

errorInfo: null | ErrorInfo

React error info including component stack