How to splitting code shadcn form component in react nextjs #124197
Replies: 1 comment
-
To split it, or for code splitting, focus first on moving the UI elements. If possible, basic state like onChange and value should be reusable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Hello everyone, please help me. I have just started learning Next.js and shadcn, but I am confused about how to split the code in the form component because my code has already reached 4000 lines.
How can I split it to make it shorter by breaking it into smaller components?
source code: https://codefile.io/f/y75KTX89uG
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions