I want to get one-time information from the input
control when value is empty and when value is not empty
right now i’m using onChange
like below:
<Input onChange={onChangeValue()} />
but this onChangeValue
method is running every time when i type into the input, but I want two times information, first when value from input is empty and second when value from input is not empty.
Can someoone tell me what can i do this?
Thanks for any help!