Formspree ajax with ES6
<p>I'm using React to build a static website. I'm trying to figure out how to use formspree using Javascript ES6 &amp; promises.</p>

<p>This is the form markup:</p>

<pre><code>&lt;form method="POST" action={email}&gt;
            &lt;Label&gt;Name:&lt;/Label&gt;
            &lt;Input name="name" /&gt;
            &lt;Label&gt;Email:&lt;/Label&gt;
            &lt;Input type="email" name="email" /&gt;
            &lt;Label&gt;Message:&lt;/Label&gt;
            &lt;Textarea name="message" /&gt;
            &lt;Input type="text" name="_gotcha" style={gotcha}/&gt;
            &lt;Button onClick={this.formSubmit} buttonStyle="isOutlined" color="isWarning"&gt;Submit&lt;/Button&gt;
          &lt;/form&gt;
</code></pre>

<p>and the <code>formSubmit</code> method:</p>

<pre><code>  formSubmit(e) {
    e.preventDefault();
    alert('form submit button');
  }
</code></pre>

<p>This is formsprees example using jQuery, but I'd rather get used to es6 and promises. </p>

<pre><code>$.ajax({
    url: "https://formspree.io/you@email.com", 
    method: "POST",
    data: {message: "hello!"},
    dataType: "json"
});
</code></pre>