ErrorBoundary
Table of contents
Extends React.Component<React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>, { error: Error | null; }>
.
class ErrorBoundary extends React.Component<
React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>,
{
error: Error | null
}
> {}
Properties
error: Error | null
state: {
error: null
}
Methods
static getDerivedStateFromError(error: Error): {
error: Error
}
Parameters
Name | Description |
---|---|
|
|
Returns
{
error: Error
}
componentDidCatch(error: unknown): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
render():
| boolean
| import('react/jsx-runtime').JSX.Element
| Iterable<React.ReactNode>
| null
| number
| string
| undefined