Check out example codes for "html submit form onclick". It will help you in understanding the concepts better.
Code Example 1
var form = document.getElementById("form-id");
document.getElementById("your-id").addEventListener("click", function () {
form.submit();
});
Learn ReactJs, React Native from akashmittal.com