@tanstack/react-form
Framework-agnostic form primitive for React with type-safe field validation, async submission, and fine-grained reactivity.
Official Documentation ↗v0.20. Check the official docs for the latest API surface.Installation
npm install @tanstack/react-formMethods
No methods match this filter.
@tanstack/react-form is framework-agnostic form primitive for react with type-safe field validation, async submission, and fine-grained reactivity. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install @tanstack/react-form with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v0.20 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about @tanstack/react-form, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
FAQ
- How is it different from react-hook-form?
- TanStack Form is framework-agnostic and uses a proxy-based reactive core; react-hook-form is React-only and uncontrolled by default.
- Does it support async validation?
- Yes. Pass an async validator to the field or form level; it runs on submit and optionally on change.
- Is it production-ready?
- It is stable but younger than react-hook-form; check the version note for the latest release.
Report a problem with this API docOpens a pre-filled issue on GitHub.