Skip to content

Commit b4bb856

Browse files
authored
defaultValues - link to legacy React docs*(issue#993) - updated link (#1009)
1 parent a189b26 commit b4bb856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/useform.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ This option allows you to configure validation strategy when inputs with errors
127127

128128
---
129129

130-
The `defaultValues` prop populates the entire form with default values. It supports both synchronous and asynchronous assignment of default values. While you can set an input's default value using `defaultValue` or `defaultChecked` [(as detailed in the official React documentation)](https://reactjs.org/docs/uncontrolled-components.html), it is **recommended** to use `defaultValues` for the entire form.
130+
The `defaultValues` prop populates the entire form with default values. It supports both synchronous and asynchronous assignment of default values. While you can set an input's default value using `defaultValue` or `defaultChecked` [(as detailed in the official React documentation)](https://react.dev/reference/react-dom/components/input), it is **recommended** to use `defaultValues` for the entire form.
131131

132132
```javascript copy
133133
useForm({
@@ -152,7 +152,7 @@ useForm({
152152
- There are other options for including form data:
153153

154154
```javascript
155-
<input {...register("hidden")} type="hidden" />
155+
;<input {...register("hidden")} type="hidden" />
156156
register("hidden", { value: "data" })
157157

158158
// include data onSubmit

0 commit comments

Comments
 (0)