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

Code Example 1

A form with two submit buttons. The first submit button submits the form data to "submit_data.php", and the second submits to "send_data.php":

<form action="/submit_data.php" method="get">
  <input type="text" id="uname" name="uname"><br><br>
  <input type="text" id="uage" name="uage"><br><br>
  <input type="text" id="uaddress" name="uaddress"><br><br>
  <button type="submit">Submit</button>
  <button type="submit" formaction="/send_data.php">Submit to another page</button>

Learn ReactJs, React Native from