Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FuncProxyProps

Properties to be used with the FuncProxy component. FuncProxy component cannot have children. A key property can be used to distinguish between multiple uses of the same function. If the function is used only once within a component, the key is not necessary; however, if the function is used multiple times, key is mandatory - otherwise, the behavior is undetermined.

Hierarchy

Index

Properties

Properties

Optional arg

arg: any

Arguments to be passed to the function. Whenever the FuncProxy component is rendered, this parameter is used when calling the wrapped function.

func

Function that renders content.

Optional funcThisArg

funcThisArg: any

Value to be used as "this" when invoking the function. If this value is undefined, the class based component that rendered the FuncProxy component will be used (which is the most common case).

Optional key

key: any

Unique key that distinguishes this JSX element from its siblings. The key can be of any type.

Generated using TypeDoc