Documents / Class: ErrorBoundary
Class: ErrorBoundary
Hierarchy
Component
<ErrorBoundaryProps
, {error?
:Error
|null
;info?
: {componentStack?
:string
} }>↳
ErrorBoundary
Table of contents
Constructors
Methods
Constructors
constructor
• new ErrorBoundary(props
)
Parameters
Name | Type |
---|---|
props | ErrorBoundaryProps |
Overrides
Component<ErrorBoundaryProps, { error?: Error | null info?: { componentStack?: string } }>.constructor
Methods
componentDidCatch
▸ componentDidCatch(error
, info
): void
Parameters
Name | Type |
---|---|
error | Error |
info | any |
Returns
void
Overrides
Component.componentDidCatch
render
▸ render(): string
| number
| boolean
| Iterable
<ReactNode
> | Element
Returns
string
| number
| boolean
| Iterable
<ReactNode
> | Element
Overrides
Component.render