useTouched

    API

    import { useTouched } from 'react-formal';
    • useTouched() => Touched

      Returns all errors for the form.

      Return Value
      Touched

    • useTouched(path: string) => Touched

      Returns the current Field value at the provided path.

      Parameters

      • pathstring

        a path to retrieve errors for.

      Return Value
      Touched

    • useTouched(paths: string[] | undefined) => Touched

      Returns an array of values for the provided field paths.

      Parameters

      • pathsstring[] | undefined

        a set of paths to retrieve errors for.

      Return Value
      Touched