1

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

1 Answer 1

0

Start by extract the form schema into a separate file

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.