realue • Docs
realue / useTransform
useTransform<
T
,U
>(props
,options
):NevoProps
<U
>
Transforms the incoming value
and the outgoing value
passed to the onChange
callback, and optionally the incoming error
and the outgoing error
passed to the onChangeError
callback. If the incoming and outgoing error
transforms are not provided, returned props will not contain error
nor onChangeError
.
• T
• U
• props: NevoProps
<T
>
Properties according to the NEVO pattern.
• options: UseTransformOptions
<T
, U
>
Options for useTransform
.
NevoProps
<U
>
Updated properties according to the NEVO pattern.