title: How to create several submit buttons in a react.js form?
body: <p>I am trying to create a form in react.js where the user can click on two different button to execute two different actions. In my case, the form should allow the user to select a document and either replace the current document (1st button) or to be appended to it (2nd button). Is it possible to achieve this in a single form ?</p>
  
  <p>I thought i could detect which button was applied using the 'event' parameter in the onSubmit function, but didn't success at it. I also thought about recreating a pseudo-form using references to inputs and normal buttons, but I would prefer not to use such a hack if a cleaner solution exists.</p>
  
  <p>Thank you in advance for your help!</p>
  
  <p>Note: I have found some questions related to multiple submit buttons (<a href="https://stackoverflow.com/questions/28238672/several-submit-buttons-in-a-single-html-form">here</a> and <a href="https://stackoverflow.com/questions/4021124/how-to-place-two-submit-buttons-in-form">here</a> for example), but none of them deal with react.js solutions.</p>