title: Yup vs Joi for frontend validation
body: <p>I want to implement frontend validation with either Yup or Joi.</p>
  <p>From all the docs and articles that I've found, I've got to a couple of conclusions:</p>
  <ul>
  <li><a href="https://github.com/icebob/validator-benchmark" rel="noreferrer">Joi has better performance</a></li>
  <li>Joi is more popular for backend validation, while Yup is more popular for frontend validation</li>
  <li><a href="https://medium.com/breathelife/building-a-scalable-form-in-react-without-the-headaches-d6159ad6cf3f" rel="noreferrer">Joi has a lack of support on the frontend</a></li>
  <li>Per <a href="https://github.com/jquense/yup" rel="noreferrer">official docs</a>, Yup <em>is leaner and built with client-side validation</em></li>
  <li>Yup bundle size is ~2.5 times smaller than Joi - <a href="https://www.npmtrends.com/joi-vs-yup" rel="noreferrer">link</a></li>
  </ul>
  <p>However, I didn't manage to find <strong>what</strong> Joi lacks in terms of support compared to Yup?</p>
  <p>Right now, from all of these conclusions, it's choosing to either have a smaller bundle or better performance.</p>