Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

  • new BaseComponent<Props, State>(props?: Props, context?: any): BaseComponent<Props, State>
  • Type parameters

    • Props = Record<string, any>

    • State = Record<string, any>

    Parameters

    • Optional props: Props
    • Optional context: any

    Returns BaseComponent<Props, State>

Properties

Optional base

base: undefined | Element | Text

context

context: ViewContext

debug

debug: boolean

propEquality

propEquality: EqualityFuncs<Props>

props

props: RenderableProps<Props, any>

state

state: Readonly<State>

stateEquality

stateEquality: EqualityFuncs<State>

Static addPropsEquality

addPropsEquality: (propEquality: any) => void

Type declaration

    • (propEquality: any): void
    • Parameters

      • propEquality: any

      Returns void

Static addStateEquality

addStateEquality: (stateEquality: any) => void

Type declaration

    • (stateEquality: any): void
    • Parameters

      • stateEquality: any

      Returns void

Static contextType

contextType: any

Optional Static defaultProps

defaultProps: any

Optional Static displayName

displayName: undefined | string

Methods

Optional componentDidCatch

componentDidCatch:

Optional componentDidMount

componentDidMount:

Optional componentDidUpdate

componentDidUpdate:

Optional componentWillMount

componentWillMount:

Optional componentWillReceiveProps

componentWillReceiveProps:

Optional componentWillUnmount

componentWillUnmount:

Optional componentWillUpdate

componentWillUpdate:

forceUpdate

  • forceUpdate(callback?: () => void): void
  • Parameters

    • Optional callback: () => void
        • (): void
        • Returns void

    Returns void

Optional getChildContext

getChildContext:

Optional getSnapshotBeforeUpdate

getSnapshotBeforeUpdate:

Abstract render

  • render(props?: RenderableProps<Props, any>, state?: Readonly<State>, context?: any): ComponentChild
  • Parameters

    • Optional props: RenderableProps<Props, any>
    • Optional state: Readonly<State>
    • Optional context: any

    Returns ComponentChild

setState

  • setState<K>(state: null | ((prevState: Readonly<State>, props: Readonly<Props>) => null | Pick<State, K> | Partial<State>) | Pick<State, K> | Partial<State>, callback?: () => void): void
  • Type parameters

    • K: string | number | symbol

    Parameters

    • state: null | ((prevState: Readonly<State>, props: Readonly<Props>) => null | Pick<State, K> | Partial<State>) | Pick<State, K> | Partial<State>
    • Optional callback: () => void
        • (): void
        • Returns void

    Returns void

shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Props, nextState: State): boolean
  • Parameters

    • nextProps: Props
    • nextState: State

    Returns boolean

Optional Static getDerivedStateFromError

getDerivedStateFromError:

Optional Static getDerivedStateFromProps

getDerivedStateFromProps:

Generated using TypeDoc