Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 834 Bytes

useMutator.md

File metadata and controls

31 lines (16 loc) · 834 Bytes

realueDocs


realue / useMutator

Function: useMutator()

useMutator<T>(props): ValueMutatorNamed<T> | undefined

Returns a simple mutator that takes only the new value as argument.

Type Parameters

T

Parameters

props: Pick<NevoProps<T>, "onChange" | "name" | "value">

Properties name and onChange according to the NEVO pattern.

Returns

ValueMutatorNamed<T> | undefined

Simple mutator that takes only the new value as argument.

Defined in

lib/hooks/useMutator.ts:10