Check out example codes for "turn off autocomplete input html". 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

someForm.setAttribute( "autocomplete", "off" ); 
someFormElm.setAttribute( "autocomplete", "off" );

Code Example 3

<input type="text" name="foo" autocomplete="off" />

Code Example 4

<form method="post" action="/form" autocomplete="off">
[…]
</form>

Learn ReactJs, React Native from akashmittal.com