Hooked-Form

Hooked-Form

  • API

›hooks

philosophy

  • Why

components

  • HookedForm
  • Form

hooks

  • useField
  • useError
  • useFieldArray
  • useFormConnect
  • useSpy

types

  • Static Typing

useError

This hook allows you to pass a fieldId and will return the error for this field.

example:

const NameError = () => {
  const err = useError('name');
  return err ? `You have errored: ${err}` : null;
}
← useFielduseFieldArray →
Docs
API
Community
Twitter
More
GitHubStar
Copyright © 2020 Jovi De Croock