Skip to content

Yet Another FormMinimal and Performant Form State Management

Quick Example

jsx
import { useForm } from 'yet-another-form/react'

const AddUser = ({ onAddUser }) => {
  const { Form, setValue, values } = useForm({
    onSubmit: onAddUser,
  })

  return (
    <Form>
      <input name="name" onChange={setValue} value={values.name} />
      <input name="email" onChange={setValue} value={values.email} />
      <button>Add user</button>
    </Form>
  )
}

Installation

bash
npm install yet-another-form
bash
yarn add yet-another-form
bash
pnpm add yet-another-form

Released under the MIT License.