Get input DOM node with use-form
You can use form.getInputNode
function to get input DOM node at the given path.
For example:
Focus first input with error on form submit
form.onSubmit
handler accepts two functions: the first function is called
with valid form values when validation passes, the second function is called
with form errors when validation fails. You can use the second function and
form.getInputNode
to focus the first input with error: