title: How to give automatic spaces in credit card validation, slash in a date format validation using yup and formik
body: <p>I am facing an issue that giving automatic space between numbers of credit cards validation like 1236 5478 4563 4563  and an automatic slash between date format validation like MM/YY by using yup and formik.
  Here is the required <a href="https://jaredpalmer.com/formik/docs/guides/validation" rel="nofollow noreferrer">link</a> for formik.</p>
  <p>I want this:</p>
  <p><a href="https://i.stack.imgur.com/2q4wf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2q4wf.png" alt="enter image description here" /></a></p>
  <p>I am getting this:</p>
  <p><a href="https://i.stack.imgur.com/TAcYO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TAcYO.png" alt="enter image description here" /></a></p>