Check out example codes for "what is min attribute in password". It will help you in understanding the concepts better.

Code Example 1

<input type="password" name="password" min="5">
<input type="text" name="username" min="5">

<!-- The minlength attribute specifies the minimum number 
of characters required in an input field.-->

Learn ReactJs, React Native from akashmittal.com