Function: useErrorBoundary()
useErrorBoundary(
callback?: (error:any,errorInfo:ErrorInfo) =>void|Promise<void>): [any, () =>void]
Catches errors thrown by the components below and lets the component render a fallback.
Parameters
Returns
[any, () => void]