# Interface StaticLifecycle<P, S>

interface StaticLifecycle<P, S> {
getDerivedStateFromError?: GetDerivedStateFromError<P, S>;
getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>;
}

#### Type Parameters

- P
- S

#### Hierarchy (view full)

- StaticLifecycle
  - ComponentClass

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

#####
Index

### Properties

getDerivedStateFromError?
getDerivedStateFromProps?

## Properties

### `Optional` getDerivedStateFromError

getDerivedStateFromError?: GetDerivedStateFromError<P, S>

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

### `Optional` getDerivedStateFromProps

getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>

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