Skip to content

UseField in parent component #3734

Answered by logaretm
Gyurmatag asked this question in Q&A
Discussion options

You must be logged in to vote

You can use useForm instead of <Form /> component and get the values for your form:

const { values } = useForm({
  validationSchema: currentSchema
});

// Field value
values.password;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gyurmatag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants