setError
The setError
function is used to set the error of a field. It’s useful when you want to set an error programmatically, for example, when you want to set an error from a server response.
The setError
function is used to set the error of a field. It’s useful when you want to set an error programmatically, for example, when you want to set an error from a server response.