Check out example codes for "html input autocomplete". It will help you in understanding the concepts better.

Code Example 1

autocomplete="off"

Code Example 2

<label for="frmNameCC">Name on card</label><input name="ccname" id="frmNameCC" required placeholder="Full Name" autocomplete="cc-name"><label for="frmCCNum">Card Number</label><input name="cardnumber" id="frmCCNum" required autocomplete="cc-number"><label for="frmCCCVC">CVC</label><input name="cvc" id="frmCCCVC" required autocomplete="cc-csc"><label for="frmCCExp">Expiry</label><input name="cc-exp" id="frmCCExp" required placeholder="MM-YYYY" autocomplete="cc-exp">

Learn ReactJs, React Native from akashmittal.com