Formik: update the state when onchange is possible on formik?

Created on 5 Dec 2018  路  2Comments  路  Source: formium/formik

How to update the state on redux store when onChange in formik and show the message based on value of onChange. Can you please guide me to do that?

<TextInput name="zipCode" placeholder="XXXXX" type="text" className="form-control" id="gaf-zipcode" title={props.getanzipcodeData.tooltipText} aria-label="zipcode" aria-describedby="basic-addon1" error={touched.zipCode && errors.zipCode} value={values.zipCode} onChange={(e) => { handleZipChange(e, setFieldValue); }} onBlur={handleBlur} />

Duplicate Question

Most helpful comment

All 2 comments

@jaredpalmer, Thanks Bro.

Was this page helpful?
0 / 5 - 0 ratings