useValidateState
Manages state with validation
Usage
useValidateState
validates state with a given rule each time state is set.
It returns an object with current validation state, last valid value and current value:
Manages state with validation
useValidateState
validates state with a given rule each time state is set.
It returns an object with current validation state, last valid value and current value: