Check out example codes for "how to make html input not autofill". 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. -->

<!-- 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

<form method="post" action="/form" autocomplete="off">

Code Example 4

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

Learn ReactJs, React Native from