Extension method enabling conditional validation using revalidate library

Motivation: I wanted to create conditional rules for some fields inside a React form. I couldn’t get the one implemented by the library, so I created one.

Basic usage: field: isRequiredIf(shouldValidateField)("Field")

Implementation:


Share this:

Buy me a coffeeBuy me a coffee