useTouched
API
import { useTouched } from 'react-formal';
useTouched
() => TouchedReturns all errors for the form.
Return Value
ToucheduseTouched
(path: string) => TouchedReturns the current Field value at the provided path.
Parameters
path
stringa path to retrieve errors for.
Return Value
ToucheduseTouched
(paths: string[] | undefined) => TouchedReturns an array of values for the provided field paths.
Parameters
paths
string[] | undefineda set of paths to retrieve errors for.
Return Value
Touched