Error boundary props

Hierarchy

  • ErrorBoundaryProps

Properties

children: Element

Children to follow errors

fallback: Element

Fallback that shows on error

onError: ((error, errorInfo) => void)

Type declaration

    • (error, errorInfo): void
    • Error callback

      Parameters

      • error: Error
      • errorInfo: Record<string, any>

      Returns void

Generated using TypeDoc