Skip to content

Commit

Permalink
fix(docs): typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed Oct 1, 2024
1 parent c8a60b7 commit 6d13de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/blog/2024-03-26-react-hook-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Notice, we have multiple validation rules for the `content` field. React Hook Fo

### Handling Submission in React Hook Formxx

In React Hook Form, registered field data are accummulated in a `data` object with their `name` and field values. We handle submission of the form data with the `handleSubmit` method of the form instance.
In React Hook Form, registered field data are accumulated in a `data` object with their `name` and field values. We handle submission of the form data with the `handleSubmit` method of the form instance.

Let's now deal with submitting the data by making changes to the form we have so far. Update the `App.js` to the following code with `formInstance.handleSubmit` passed to `onSubmit` event on `<form>` element:

Expand Down

0 comments on commit 6d13de7

Please sign in to comment.