I'm building the form using ReactJS and if it has <input type="submit"> element it works fine: forms submits by pressing enter in input[type="text"] and by pressing submit element (And there are also working checkings by ReactJS when form is not submitted if nothing has changed).
But if I replace input[type="submit"] with <button>ButtonLabel</button> I try to use 2 ways:
Get form DOMNode element and call .submit() method which is not ok because it doesn't use internal ReactJS logic
Pass params to button like
<button type="submit" form="form-id">but it still doesn't use ReactJS checkings (I don't want to submit the form if nothing has changed)
So I would really appreciate if someone will suggest me how to submit the form in ReactJS correctly using BUTTON element.