Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

Hierarchy

Index

Constructors

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

    Parameters

    • Optional props: Props
    • Optional context: any

    Returns BaseComponent<Props, State>

Properties

base?: Element | Text
context: ViewContext
debug: boolean
propEquality: EqualityFuncs<Props>
props: RenderableProps<Props, any>
state: Readonly<State>
stateEquality: EqualityFuncs<State>
addPropsEquality: ((this: { prototype: { propEquality: any } }, propEquality: any) => void)

Type declaration

    • (this: { prototype: { propEquality: any } }, propEquality: any): void
    • Parameters

      • this: { prototype: { propEquality: any } }
        • prototype: { propEquality: any }
          • propEquality: any
      • propEquality: any

      Returns void

addStateEquality: ((this: { prototype: { stateEquality: any } }, stateEquality: any) => void)

Type declaration

    • (this: { prototype: { stateEquality: any } }, stateEquality: any): void
    • Parameters

      • this: { prototype: { stateEquality: any } }
        • prototype: { stateEquality: any }
          • stateEquality: any
      • stateEquality: any

      Returns void

contextType: any
defaultProps?: any
displayName?: string

Methods

  • componentDidCatch(error: any, errorInfo: ErrorInfo): void
  • Parameters

    • error: any
    • errorInfo: ErrorInfo

    Returns void

  • componentDidMount(): void
  • Returns void

  • componentDidUpdate(previousProps: Readonly<Props>, previousState: Readonly<State>, snapshot: any): void
  • Parameters

    • previousProps: Readonly<Props>
    • previousState: Readonly<State>
    • snapshot: any

    Returns void

  • componentWillMount(): void
  • Returns void

  • componentWillReceiveProps(nextProps: Readonly<Props>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<Props>
    • nextContext: any

    Returns void

  • componentWillUnmount(): void
  • Returns void

  • componentWillUpdate(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<Props>
    • nextState: Readonly<State>
    • nextContext: any

    Returns void

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

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

    Returns void

  • getChildContext(): object
  • Returns object

  • getSnapshotBeforeUpdate(oldProps: Readonly<Props>, oldState: Readonly<State>): any
  • Parameters

    • oldProps: Readonly<Props>
    • oldState: Readonly<State>

    Returns any

  • 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

  • safeSetState(newState: Partial<State>): void
  • Parameters

    • newState: Partial<State>

    Returns void

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

    • K extends string | number | symbol

    Parameters

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

    Returns void

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

    • nextProps: Props
    • nextState: State

    Returns boolean

  • getDerivedStateFromError(error: any): null | object
  • Parameters

    • error: any

    Returns null | object

  • getDerivedStateFromProps(props: object, state: object): null | object
  • Parameters

    • props: object
    • state: object

    Returns null | object

Generated using TypeDoc