Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Provide sample for using React Hook Forms #4

Closed
devraj opened this issue Jul 28, 2022 · 1 comment
Closed

Provide sample for using React Hook Forms #4

devraj opened this issue Jul 28, 2022 · 1 comment
Assignees

Comments

@devraj
Copy link
Member

devraj commented Jul 28, 2022

Provide a sample for react. hook forms that:

  • show you how to validate field
  • display error messages
  • covers a complex scenario like filling in a form across tabs
@devraj devraj self-assigned this Sep 15, 2022
@devraj
Copy link
Member Author

devraj commented Nov 8, 2022

React Router 6.4 introduces Forms as a concept and intercepts the submit lifecycle of the form to perform the fetch. It covers all use cases of update, delete, etc.

The project recommends using native browser level validation, in light of this we should evaluate how we approach form validation.

Note there are definitely merits to ideas like #5 where we can share rules from the server definitions. In having said that there's also merit to the idea of dropping a library if we don't need it.

@devraj devraj closed this as completed Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant