useForm

Why?
Duplication of
logic for forms
from the perspective of different requirements is a bad idea. Especially validation.
The
data model
is also important. After all, for each view it would be easier to use the same properties to describe the interface, rather than different ones.
Therefore, it is worthwhile to enclose such a part of the application in a hook and then, if necessary, replace it with a library later.
Usage
Implementation
More about form management in
this article
.