Skip to content

docs(core): add comparison to angular forms #1271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions docs/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ Feature/Capability Key:
- 🔶 Supported and documented, but requires extra user-code to implement
- 🛑 Not officially supported or documented.

| Feature | TanStack Form | Formik | Redux Form | React Hook Form | Final Form |
| ------------------------------------------------- | -------------------------------------------- | ------------------------------ | -------------------------------------- | ------------------------------------------------ | -------------------------------------- |
| Github Repo / Stars | [![][stars-tanstack-form]][gh-tanstack-form] | [![][stars-formik]][gh-formik] | [![][stars-redux-form]][gh-redux-form] | [![][stars-react-hook-form]][gh-react-hook-form] | [![][stars-final-form]][gh-final-form] |
| Supported Frameworks | React, Vue, Angular, Solid, Lit | React | React | React | React, Vue, Angular, Solid, Vanilla JS |
| Bundle Size | [![][bp-tanstack-form]][bpl-tanstack-form] | [![][bp-formik]][bpl-formik] | [![][bp-redux-form]][bpl-redux-form] | [![][bp-react-hook-form]][bpl-react-hook-form] | [![][bp-final-form]][bpl-final-form] |
| First-class TypeScript support | ✅ | ❓ | ❓ | ✅ | ✅ |
| Fully Inferred TypeScript (Including Deep Fields) | ✅ | ❓ | ❓ | ✅ | 🛑 |
| Headless UI components | ✅ | ❓ | ❓ | ✅ | ❓ |
| Framework agnostic | ✅ | ❓ | ❓ | 🛑 | ✅ |
| Granular reactivity | ✅ | ❓ | ❓ | ❓ | ✅ |
| Nested object/array fields | ✅ | ✅ | ❓ | ✅\*(1) | ✅ |
| Async validation | ✅ | ✅ | ❓ | ✅ | ✅ |
| Built-in async validation debounce | ✅ | ❓ | ❓ | ❓ | ❓ |
| Schema-based Validation | ✅ | ✅ | ❓ | ✅ | ❓ |
| First Party Devtools | 🛑\*(2) | 🛑 | ✅\*(3) | ✅ | ❓ |
| SSR integrations | ✅ | 🛑 | 🛑 | 🛑 | 🛑 |
| React Compiler support | ✅ | ❓ | ❓ | 🛑 | ❓ |
| Feature | TanStack Form | Formik | Redux Form | React Hook Form | Final Form | Angular Forms |
| ------------------------------------------------- | -------------------------------------------- | ------------------------------ | -------------------------------------- | ------------------------------------------------ | -------------------------------------- | -------------------------------------------- |
| Github Repo / Stars | [![][stars-tanstack-form]][gh-tanstack-form] | [![][stars-formik]][gh-formik] | [![][stars-redux-form]][gh-redux-form] | [![][stars-react-hook-form]][gh-react-hook-form] | [![][stars-final-form]][gh-final-form] | [![][stars-angular-forms]][gh-angular-forms] |
| Supported Frameworks | React, Vue, Angular, Solid, Lit | React | React | React | React, Vue, Angular, Solid, Vanilla JS | Angular |
| Bundle Size | [![][bp-tanstack-form]][bpl-tanstack-form] | [![][bp-formik]][bpl-formik] | [![][bp-redux-form]][bpl-redux-form] | [![][bp-react-hook-form]][bpl-react-hook-form] | [![][bp-final-form]][bpl-final-form] | [![][bp-angular-forms]][bpl-angular-forms] |
| First-class TypeScript support | ✅ | ❓ | ❓ | ✅ | ✅ | ✅ |
| Fully Inferred TypeScript (Including Deep Fields) | ✅ | ❓ | ❓ | ✅ | 🛑 | 🔶 |
| Headless UI components | ✅ | ❓ | ❓ | ✅ | ❓ | ❓ |
| Framework agnostic | ✅ | ❓ | ❓ | 🛑 | ✅ | 🛑 |
| Granular reactivity | ✅ | ❓ | ❓ | ❓ | ✅ | ❓ |
| Nested object/array fields | ✅ | ✅ | ❓ | ✅\*(1) | ✅ | ✅ |
| Async validation | ✅ | ✅ | ❓ | ✅ | ✅ | ✅ |
| Built-in async validation debounce | ✅ | ❓ | ❓ | ❓ | ❓ | ❓ |
| Schema-based Validation | ✅ | ✅ | ❓ | ✅ | ❓ | ❓ |
| First Party Devtools | 🛑\*(2) | 🛑 | ✅\*(3) | ✅ | ❓ | ✅ |
| SSR integrations | ✅ | 🛑 | 🛑 | 🛑 | 🛑 | ✅ |
| React Compiler support | ✅ | ❓ | ❓ | 🛑 | ❓ | N/A |

\*(1) For nested arrays, react-hook-form requires you [to cast the field array by its name](https://react-hook-form.com/docs/usefieldarray) if you're using TypeScript

Expand Down Expand Up @@ -56,3 +56,7 @@ Feature/Capability Key:
[bp-final-form]: https://badgen.net/bundlephobia/minzip/final-form?label=💾
[gh-final-form]: https://github.com/final-form/final-form
[stars-final-form]: https://img.shields.io/github/stars/final-form/final-form?label=%F0%9F%8C%9F
[bpl-angular-forms]: https://bundlephobia.com/result?p=@angular/forms
[bp-angular-forms]: https://badgen.net/bundlephobia/minzip/@angular/forms?label=💾
[gh-angular-forms]: https://github.com/angular/angular/tree/main/packages/forms
[stars-angular-forms]: https://img.shields.io/github/stars/angular/angular?label=%F0%9F%8C%9F