DEV Community

Discussion on: React Form using Formik, Material-UI and Yup.

Collapse
 
gkranasinghe profile image
gkranasinghe

HI this may be a silly question , I know this is something to do with object destructuring

What is does values: { name, email, password, confirmPassword }, DO
is it same is props.values.name

const {
values: { name, email, password, confirmPassword },
errors,
touched,
handleSubmit,
handleChange,
isValid,
setFieldTouched
} = props