How to change validation rules when this field depends on another field? 🙂
This is a video in my redux project series.
In this video, I will share with you:
✅ Introducing Yup, a javascript library that helps me do form validation.
✅ Setting up form validation with Yup
✅ This field is required when another field has a certain value? How to set it up?
Hopefully through this video, everyone will understand how to do form validation in ReactJS with Yup 😉
🌐 Reference link:
Code changes: https://github.com/paulnguyen-mn/redu...
Yup: https://github.com/jquense/yup
#reactjs_form
#formik
#yup
----
💻 Easy Frontend 🎉
Where frontend web programming knowledge (html/css/javascript/reactjs) is shared in a simple, easy-to-understand and especially fun way 😊 With carefully compiled documents (tutorials) to help new developers grasp the problem quickly and effectively. From there, gradually improve your coding ability over time.
❤️ Support me to make videos, please contribute here:
Support me: https://unghotoi.com/easyfrontend
MoMo/ZaloPay: 0901 309 729
Connect with me:
🎉 Fan page: / learn.easyfrontend
❓Group: / easyfrontend
💻Github: https://github.com/paulnguyen-mn
💼 LinkedIn: / haunguyenmn