Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 1.08 KB

useTransform.md

File metadata and controls

37 lines (19 loc) · 1.08 KB

realueDocs


realue / useTransform

Function: 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.

Type Parameters

T

U

Parameters

props: NevoProps<T>

Properties according to the NEVO pattern.

options: UseTransformOptions<T, U>

Options for useTransform.

Returns

NevoProps<U>

Updated properties according to the NEVO pattern.

Defined in

lib/hooks/useTransform.ts:17