Description
@rc-component/form is a React form state manager that the project describes as performance-first. It is part of the Ant Design ecosystem, and it was formerly documented as rc-field-form, which the README says to replace with @rc-component/form for new installs. The library handles field-level subscriptions, so that only the fields that change are re-rendered, along with controlled fields, initial values, and rule-based validation powered by @rc-component/async-validator. Forms can have nested field names, lists, dependencies that re-render a field when another changes, and control over whether a value is kept when its field is removed. The public APIs are Form, Field, List, FormProvider, useForm and useWatch. The state model works in React DOM and is friendly to React Native. The Form component takes props such as initialValues, validateMessages and handlers for changed fields, a successful submit and a failed submit. The repository includes a local dumi site with examples, and it is released under the MIT licence. It suits React developers building forms that need validation and many fields without re-rendering the whole page.…
Highlights
- Field-level subscriptions for fewer re-renders
- Rule-based validation
- Lists, nested names and dependencies
- Form, Field, List and useForm APIs
Ratings & Reviews
No ratings yet
Be the first to rate rc-field-form.
People also visit

react-hook-form
React Hook Form performance optimization for client-side form validation
Form
Headless, performant, and type-safe form state management for TS/JS, React, Vue
Final Form
Framework agnostic, high performance, subscription-based form state management
rc-field-form FAQ
What does @rc-component/form do?
It manages the state, validation and submission of forms in React, with field-level subscriptions for good performance.
Was it called something else?
Yes. It was formerly documented as rc-field-form, and the README says to use @rc-component/form for new installs.
How is validation set up?
With rules on each field, powered by @rc-component/async-validator, and validateMessages to set the message templates.
Does it work outside the browser?
The README says the state model is friendly to React Native as well as React DOM.
What license is it under?
MIT, according to the repository.
What are the best rc-field-form alternatives?
Popular alternatives to rc-field-form include formsy-react, rc-form and @formio/react. See all rc-field-form alternatives












