Check out example codes for "express js search example". It will help you in understanding the concepts better.

Code Example 1

<form action="/users/dashboard" method="GET">
   <input type="search" name="q" aria-label="Search">
   <button type="submit">Search</button>
</form>

Learn ReactJs, React Native from akashmittal.com