📦
Tiny Bundle Size
Focused on being the smallest form management library. Every byte counts!
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>
)
}npm install yet-another-formyarn add yet-another-formpnpm add yet-another-form