Check out example codes for "add submit to input". It will help you in understanding the concepts better.

Code Example 1

<!-- put this line of code inside of your input -->
 onchange="this.form.submit()

<!-- EXAMPLE -->

      <input type="checkbox" onchange="this.form.submit()">

Learn ReactJs, React Native from akashmittal.com