skip to Main Content

What can I do to improve my writing?

In my react with typescript project, I'm using the Formik component alongside Yup validation schema to validate an address form. At the moment, it work fine for an existing user, because the initialValues are populated with valid data. Also, it…

VIEW QUESTION

Formik value does not update with onChange formik.handleChange – Reactjs

This is my <CardBody> : <CardBody> <CustomInput value={formik.values.email} onChange={(e) => { formik.handleChange(e); setErrMsg(""); }} labelText="Email..." id="email" inputProps={{ type: "email", endAdornment: ( <InputAdornment position="end"> <Email className={classes.inputIconsColor} /> </InputAdornment> ), }} /> <CustomInput value={formik.values.password} onChange={(e) => { console.log("change password"); formik.handleChange(e); setErrMsg(""); }}…

VIEW QUESTION
Back To Top
Search