title: Convert HTML form with action to React form submit with logic
body: <p>Folks, I think I'm either missing something here or <em>I don't know what I don't know</em>. </p>
  
  <p>What I have is: </p>
  
  <pre><code>&lt;form action="/orders/populate" method="post"&gt;
    &lt;input type="hidden" name="name" id="name"/&gt;
    &lt;input type="hidden" name="rating" id="rating"/&gt;
    &lt;input type="submit" name="commit" value="Rate Now" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What I want to do is:</p>
  
  <pre><code>Class myComponent extends React.PureComponent {
      handleSubmit(e) {
        e.preventDefault(); // don't know if this is necessary
        sendAnalytics();
        // then form submit
      }
  
      render () {
          return (
              &lt;form action="/orders/populate" method="post" onSubmit={this.handleSubmit.bind(this)}&gt;
                &lt;input type="hidden" name="name" id="name"/&gt;
                &lt;input type="hidden" name="rating" id="rating"/&gt;
                &lt;input type="submit" name="commit" value="Rate Now" /&gt;
              &lt;/form&gt;
          );
      }
  }
  </code></pre>
  
  <p>Don't know what has to be done here. Can someone point out an example similar to this? Or perhaps give me a sample code below?</p>
  
  <p>All help appreciated.</p>