Design comparison
Solution retrospective
I tried to do each input, a component, but I struggled a lot with the communication between components, so I handled the whole form as a unique component. It's a bad practice? How do you manage a form?
Community feedback
- @Itskrish01Posted over 1 year ago
Hello there,
Great job on attempting to break down the form into separate components! While it can be challenging to manage the communication between components, it's definitely a good practice to break down the form into smaller, reusable components.
In terms of managing forms, one popular approach is to use libraries such as Formik and Yup. Formik simplifies the process of managing form state and validation, while Yup provides a declarative way to validate the data. By using these libraries, you can simplify your code and avoid the need to handle form state and validation manually.
Thanks,
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord