Interface ComponentClass<P, S>
Constructors
constructor
- new ComponentClass(props: P, context?: any): Component<P, S>
-
Parameters
-
props: P
-
Optional
context: any
Properties
Optional
contextType
Optional
defaultProps
Optional
displayName
displayName?: string
Methods
Optional
getDerivedStateFromError
- getDerivedStateFromError(error: any): null | Partial<S>
-
Returns null | Partial<S>
Optional
getDerivedStateFromProps
- getDerivedStateFromProps(props: Readonly<P>, state: Readonly<S>): null | Partial<S>
-
Returns null | Partial<S>