Hi All, So far we have been doing the validation manually in ad-hoc manner. It seems that this approach is not scalable. For example, We had to write URL , email , ip address etc validation patterns manually. So I think it's better to integrate a third-party library that is dedicated to the validation task. So we explored the available libraries and found these widely adopted libraries.
- Joi[1][2] - Validator.js[3] - V8n[4] ... many more <https://github.com/topics/validation?l=javascript>[4] The above top 3 picks are pure validation libraries, Not related to ReactJs. Out of those, IMO Joi[1] fits with our requirements well. Here is a sample implementation <https://codesandbox.io/s/stoic-mcnulty-9kcmj>[5] with material UI elements. Please give your feedback. [1]: https://github.com/hapijs/joi [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md [3]: https://github.com/validatorjs/validator.js [4]: https://github.com/imbrn/v8n [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj -- *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc. (m) +94 711661919 | (w) +94 11 214 5345 | (e) [email protected] GET INTEGRATION AGILE Integration Agility for Digitally Driven Business
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
