Type alias GetDerivedStateFromError<P, S>

GetDerivedStateFromError<P, S>: ((error) => Partial<S> | null)

Type Parameters

  • P
  • S

Type declaration

    • (error): Partial<S> | null
    • Parameters

      • error: any

      Returns Partial<S> | null