unform
Unform is a performance focused library that helps you creating beautiful forms in React with the power of uncontrolled components performance and React Hooks.
Main advantages
- Beautiful syntax;
- React Hooks ?;
- Performance focused;
- Use of uncontrolled components;
- Integration with pickers, dropdowns and other libraries;
Why not Formik, Redux Form or another library?
Formik/Redux Form has a really great syntax while it has a really poor support to uncontrolled components and deep nested data structures. With unform it's easy to create forms with complex relationships without losing performance.
Roadmap
- Native checkbox/radio support;
- Styled components support;
- React Native support (should we?);
- Better docs;
Installation
Just add unform to your project:
yarn add @rocketseat/unform
Guides
Basics
Nested fields
Initial data
Validation
Manipulate data
Custom elements
Sometimes we need to use third-party component in our forms. But don't you worry, Unform has your back! You can do that via useField
which provides all the resources you need to use your component with Unform.
Below are some examples with react-select and react-datepicker.