E
E
Evgeny Zalivadny2021-02-14 16:35:36
React
Evgeny Zalivadny, 2021-02-14 16:35:36

Is there a better package for creating and validating React forms than Formik + Yup?

I came across a project on Formik + Yup, where I found crutches in the form of passing key=updateView props to child elements (not inside .map), which is incremented when fields change, as well as using debounce before onChange. The whole thing slowed down during development, but there were no brakes in the build. When porting the project to TypeScript, I had to mow {field, meta}, because their types are not defined, and instead pass getFieldMeta + getFieldProps through props, or use the useFormik () hook, but both options are unsatisfactory, because they make too many re-renders and now brakes are even in the build.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gimir, 2021-02-14
@Nordihan

Try react-hook-form , you can make very optimized forms with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question