Type alias GetDerivedStateFromProps<P, S>

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

Type Parameters

  • P
  • S

Type declaration

    • (nextProps, prevState): Partial<S> | null
    • Parameters

      • nextProps: Readonly<P>
      • prevState: S

      Returns Partial<S> | null