Юниверс DG SDK UI
v2.15.0

Псевдоним типа GetDerivedStateFromProps<P, S>

GetDerivedStateFromProps: (
    nextProps: Readonly<P>,
    prevState: S,
) => Partial<S> | null

Параметры типа

  • P
  • S

Объявление типа

    • (nextProps: Readonly<P>, prevState: S): Partial<S> | null
    • Параметры

      • nextProps: Readonly<P>
      • prevState: S

      Возвращает Partial<S> | null