# 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

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:1393