It's to validate the input component value in React app (web and native). The value is validated based on the rule(s) defined for the input. If the input is invalid, the error message is shown near the input. Moreover, you can change the inputs' appearance when they are invalid or also valid after the invocation of validation as depicted by the pictures below:
It's very useful before submitted to the server.
For web app, install the following package:
npm i @react-input-validator/web
For React Native app, install the following package:
npm i @react-input-validator/native
Please see this docs. Additionally, you can take a look at the
example
directory in the source code.