Hooked-Form

Hooked-Form

  • API

›types

philosophy

  • Why

components

  • HookedForm
  • Form

hooks

  • useField
  • useError
  • useFieldArray
  • useFormConnect
  • useSpy

types

  • Static Typing

Static Typing

Form

Form accepts a values generic, this is an object containing all the values of the field. This will be used to determine what the validation and submit will happen with.

Example: HookedForm<{ name: string }>(options)(Component)

Fields

Both useFieldArrray and useField accept a generic type to determine what value they'll have and what they should expect for the onChange to call.

Example: useField<string>(fieldId) will make the value a string and make the onChange expect a string.

← useSpy
  • Form
  • Fields
Docs
API
Community
Twitter
More
GitHubStar
Copyright © 2020 Jovi De Croock