Hello, Sanjay,
Currently, the validation logic is outside of the components.
This is because even if a specific validation case is common, our experience in this field had shown us that each use case usually has a small difference that will need modification. Also, we try not to separate cases, like common or uncommon as for the different projects a specific case can be very common compared to others.
We follow the React best practices for reusable components and we allow easier integration with them. For example, if you need a specific email validation that will be commonly used in the application, a single component can be made that implements this as can be used across the application.
Then later when a change is needed, instead of making that change to our built-in prop in all components that uses it, a change will be needed only in the custom validation component.
Regards,
Stefan
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.