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
pathstringa path to retrieve errors for.
Return Value
ToucheduseTouched(paths: string[] | undefined) => TouchedReturns an array of values for the provided field paths.
Parameters
pathsstring[] | undefineda set of paths to retrieve errors for.
Return Value
Touched