Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional base

base?: Element | Text

context

context: any

props

props: any

state

state: Readonly<any>

Methods

Optional componentDidCatch

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

Optional componentDidMount

  • componentDidMount(): void

Optional componentDidUpdate

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

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

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

Optional componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

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

forceUpdate

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

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

    Returns void

Optional getChildContext

  • getChildContext(): object

Optional getSnapshotBeforeUpdate

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

Abstract render

  • render(props?: any, state?: Readonly<any>, context?: any): ComponentChild

setState

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

    • K: string | number | symbol

    Parameters

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

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean

Generated using TypeDoc