ErrorBoundary는 자식 컴포넌트 트리에서 JavaScript 에러를 감지하고 처리하는 React 컴포넌트입니다.

Hierarchy

Constructors

  • Parameters

    Returns ErrorBoundary

  • Parameters

    Returns ErrorBoundary

Properties

state: ErrorBoundaryState = ...

Methods

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: unknown

    Returns void

  • Returns
        | undefined
        | null
        | string
        | number
        | boolean
        | Element
        | Iterable<ReactNode, any, any>