ErrorBoundary
A container component that catches errors and displays a fallback UI.
Props
Prop | Type | Default | Description |
---|---|---|---|
children | string | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...> | ||
fallback | string | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...> | ||
onError | (error: Error, errorInfo: ErrorInfo) => void |
Was this helpful?