Check out example codes for "barra di ricerca in html". It will help you in understanding the concepts better.

Code Example 1

<input type="text" id="barra-ricerca" onkeyup="ricerca()" placeholder="Cerca">
<ul id="elenco">
  <li>Mario</li>
  <li>Alfredo</li>
  <li>Giorgio</li>
  <li>Dario</li>
  <li>Mara</li>    
  <li>Davide</li>
  <li>Aldo</li>  
  <li>Giuseppe</li>        
</ul>

Learn ReactJs, React Native from akashmittal.com