Validation in redux-form can be approached using many "schema-validation" libraries. I used validate.js
, but ran into a restriction: we needed to validate user input
differently based on other input in that same form. This is quite a common requirement for validation,
and was surprisingly elegant to solve in redux-form
.
small caveat: not adapted for redux-form 6
Libraries used: