Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "components/utils/useProperty"

Index

Functions

Const emptyFn

  • emptyFn(): void
  • Returns void

Const isControlled

  • isControlled(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

Const toUpperFirst

  • toUpperFirst(str: string): string
  • Parameters

    • str: string

    Returns string

Const useProperty

  • useProperty<TS>(props: any, propName: string, defaultValue?: any | undefined, config?: object): [TS, function]
  • Type parameters

    • TS

    Parameters

    • props: any
    • propName: string
    • Optional defaultValue: any | undefined
    • Optional config: object
      • Optional onChange?: function
          • (value: TS, ...args: any[]): void
          • Parameters

            • value: TS
            • Rest ...args: any[]

            Returns void

    Returns [TS, function]

Generated using TypeDoc