Check out example codes for "input disable autocomplete". It will help you in understanding the concepts better.
Code Example 1
<form method="post" action="/post/" autocomplete="off">
<!-- The entire form has autocomplete disabled. -->
</form>
<!-- or you turn it off for just one input -->
<input type="text" autocomplete="off">
Code Example 2
autocomplete="off"
Learn ReactJs, React Native from akashmittal.com