Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

**issue (complexity):** Consider refactoring to encapsulate input fields in a separate component. #41

Open
Shloimy15e opened this issue Aug 20, 2024 · 0 comments
Assignees

Comments

@Shloimy15e
Copy link
Owner

          **issue (complexity):** Consider refactoring to encapsulate input fields in a separate component.

The new code introduces react-hook-form, which adds complexity with increased dependencies and inline validation logic. Error handling is more verbose and scattered, making the component harder to read. Consider refactoring to improve readability and maintainability. For example, encapsulate input fields in a separate InputField component to reduce duplication and simplify error handling. This approach keeps the form logic cleaner and makes the codebase easier to maintain and extend.

Originally posted by @sourcery-ai[bot] in #35 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant