"Easy to use" is one of the core design principles of React Cool Form, the library is built on top of React hook. So it's easy to be integrated with an existing form without too much effort.
To use React Cool Form, we just need to attach the form method to the target element via the
ref attribute. It acts as a delegator that will take care of all the values of input, select, and textarea for us.
If you need to use the
ref of form for other purpose, you can share the
ref by the following way:
Without Using a
React Cool Form is not limited to actual forms. It can be used with any container where inputs are used.
You can tell React Cool Form to exclude field(s) via the pre-defined
data-rcf-exclude attribute or the excludeFields option, depending on your case.