DEV Community

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

Collapse
 
vinu29011993 profile image
Vinod

Hi sir,
I am building forms in react using Formik and Yup for validations.
I am not getting how we restrict a user to enter limited characters for example,
Mobile Number : user should enter only 10 digits not more that
In my code i am passing max length to input tag
Could you please help me ?