Skip to content

Commit 1ae7d8c

Browse files
authored
Fix typo in validation docs
1 parent 1e4ebf4 commit 1ae7d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/validation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ and a `message` string which will be used to display the error in the form.
6868
```js
6969
const AdditionalErrorsExample = () => {
7070

71-
const [additionalErrors, setAdditionalErrors] = useState<ErrorObject[])([]);
71+
const [additionalErrors, setAdditionalErrors] = useState<ErrorObject[]>([]);
7272

7373
const addAdditionalError = () => {
7474
const newError: ErrorObject = {

0 commit comments

Comments
 (0)