Skip to content

Commit 608b1f8

Browse files
authored
docs: update hook declaration in component.
1 parent cd6c841 commit 608b1f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const MyComponent = () => {
5959
const [username, setUsername] = useState('');
6060
const [password, setPassword] = useState('');
6161

62-
const {validate, errors} = useValidation(LoginValidation);
62+
const [validate, errors] = useValidation(LoginValidation);
6363

6464
return (
6565
<form onSubmit={async (evt) => {

0 commit comments

Comments
 (0)