Next.js Discord

Discord Forum

How to deal with complex forms

Unanswered
American black bear posted this in #help-forum
Open in Discord
Avatar
American black bearOP
I am building forms for dashboard that have edit button to un-disable input field (like in picture).

This is the first time I am building an app with so many forms and it has been a nightmare so far. I am using shadcn/ui & react-hook-form and every file has at least 250 lines for barebone functionality. On top of that code is quite messy and hard to edit & refactor.

I am also struggling with code splitting and abstracting forms into reusable chunks, leading to super un-efficient workflow.

Do you have any tips/libraries for handling larger forms or some design patterns to make this process less painful.
Image

0 Replies