Added register
This commit is contained in:
@@ -10,7 +10,9 @@ export const Login = () => {
|
||||
password: z.string().min(6),
|
||||
});
|
||||
|
||||
const form = useForm({
|
||||
type schemaType = z.infer<typeof schema>;
|
||||
|
||||
const form = useForm<schemaType>({
|
||||
resolver: zodResolver(schema),
|
||||
});
|
||||
console.log(form.formState.errors);
|
||||
|
||||
Reference in New Issue
Block a user