Псевдоним типа GetDerivedStateFromProps<P, S>
GetDerivedStateFromProps: ( nextProps: Readonly<P>, prevState: S,) => Partial<S> | null Объявление типа
- (nextProps: Readonly<P>, prevState: S): Partial<S> | null
Параметры
- nextProps: Readonly<P>
- prevState: S
Возвращает Partial<S> | null