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

Code Example 1

<input type="submit" value="Submit">

Code Example 2

<button type="submit" form="form1" value="Submit">Submit</button>

Code Example 3

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

<!-- EXAMPLE -->

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

Code Example 4

<input type="submit">

Code Example 5

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>

Learn ReactJs, React Native from akashmittal.com