ErrorBoundary
Public Class
Table of Contents
Signature
class ErrorBoundary extends React.Component<
React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>,
TLErrorBoundaryState
> {}
References
React.Component, React.PropsWithRef, React.PropsWithChildren, TLErrorBoundaryProps, TLErrorBoundaryState
Properties
state
Public Property
Signature
state: TLErrorBoundaryState
References
Methods
componentDidCatch()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
void
getDerivedStateFromError()
Public Static Method
Parameters
Name | Description |
---|---|
|
|
Returns
{
error: Error
}
References
render()
Public Method
Parameters
None
Returns
React.ReactNode