Arc.React.MVVM
Preparing search index...
withViewModel
Function withViewModel
withViewModel
<
TViewModel
extends
object
,
TProps
extends
object
=
object
>
(
viewModelType
:
Constructor
<
TViewModel
>
,
targetComponent
:
FunctionComponent
<
IViewContext
<
TViewModel
,
TProps
>
>
,
)
:
(
props
:
TProps
)
=>
Element
|
null
Use a view model with a component.
Type Parameters
TViewModel
extends
object
TProps
extends
object
=
object
Parameters
viewModelType
:
Constructor
<
TViewModel
>
View model type to use.
targetComponent
:
FunctionComponent
<
IViewContext
<
TViewModel
,
TProps
>
>
The target component to render.
Returns
(
props
:
TProps
)
=>
Element
|
null
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Arc.React.MVVM
Loading...
Use a view model with a component.