Install
Install mixin via npm OR yarn:
> npm install --save react-validation-mixin
> yarn add react-validation-mixin
Install validation strategy via npm OR yarn:
> npm install --save joi-validation-strategy
> yarn add joi-validation-strategy
Make sure you install the peer dependency Joi if using the joi-validation-strategy:
> npm install --save joi
> yarn add joi
Current list of validation strategy implementations to choose from:
- joi-validation-strategy - based on Joi
- react-validatorjs-strategy - based on validatorjs