r/reactjs • u/Bear_fucker_69420 • May 20 '26
Show /r/reactjs Created a website that generates form code for react-hook-form/formik and zod/yup.
https://codiform.vercel.app/Hi people of r/reactjs ,
I recently made this website as my first project that i have deployed, it allows you to define various configuration for various input fields, such as name, label, placeholder, required, disabled and also allows you to define default values as well as validations. Then using this, it generates a code in either typescript or javascript, based on library of your choosing. It supports, react-hook-form+zod, formik+yup, react-hook-form+yup and formik+zod.
It also allows you to save the configuration as templates in localStorage, which you can then use later. You can also paste JSON schema to create a new form.
Also this websites is only accessible on desktop, I didn't really know how I could expand it to mobile.
Plz remember this is my first project, all feedbacks are greatly appreciated, I did use some AI for help in code generation, plz don't hate for it.
Here is the github link: https://github.com/PriyamSrivastava1507/codiform
If you liked the project, then please star it on github.
I would also love to know how I can expand it more, I am thinking of adding FieldArray and Multistep forms next.
Sorry, if my English is bad, I would love to see some feedbacks and your opinion. Thank you.
10
u/jesuslikedmen May 20 '26
What do you mean some ai code generation this entire thing was ai generated lmao
4
u/Honey-Entire May 21 '26
In a decade of professional FE development I can’t say I’ve ever see someone add conditional checks to event handlers instead of only passing event handlers to the right element and avoiding the need for checks altogether
This does not instill confidence in downstream users know there’s going to be some bug that’s entirely caused by sloppy patterns