M
M
maxemga2021-03-29 22:58:53
JavaScript
maxemga, 2021-03-29 22:58:53

How to get values ​​from form (React Formik)?

I am working with Formik to validate forms and I need to get the value of the inputs outside
the Formik component, that is, display them in the console .
formik component?
https://jsfiddle.net/j0a3xygp/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gumus171991, 2021-03-30
@Gumus171991

You do an action that will dispatch the form values ​​to the state and then use the values ​​from the state in the desired component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question