useErrorBoundaryfunction useErrorBoundary(callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void): [any, () => void];§useErrorBoundary(callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void): [any, () => void][src]§Parameters§callback?: (error: any, errorInfo: ErrorInfo) => Promise<void> | void optional[src]§Return Type§[any, () => void][src]