Hello!
As Formik is not maintained anymore, it would be awesome to transition the form implementations to react-hook-forms.
Also, for validation, zod has much better TypeScript support than yup. Having a great experience working with these two in my metronic projects, I can only recommend implementing them as the default solutions.
Best regards,
Tamás
Hi Lauris,
Fantastic! As you can see, it took over formik in the last year, and rightfully so.
https://npmtrends.com/formik-vs-react-hook-form
Looking forward for this.
Also, here is a short and to the point reasoning why I believe zod is better than yup, since the react demos are now in typescript: https://egghead.io/blog/zod-vs-yup-vs-joi-vs-io-ts-for-creating-runtime-typescript-validation-schemas
Best wishes,
Tamás
Hi Tamas,
Yes it seems like Zod validation schema is the best option for Typescript.
I already created a task for this migration, we will check this and update it in Metornic as soon as possible.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Tamas,
Thank you for your suggestion.
We will check react-hook-forms and consider using it in the next Metronic releases.
Regards,
Lauris Stepanovs,
Keenthemes Support Team