title: React open mailto E-Mail client onClick with body from textarea
body: <p>This sounds like it must have been asked before but I could only find how to do this in react native but <strong>I could not find how it's done in normal react for web</strong>. Preferably <em>not</em> with an a tag or Link tag that needs to be styled.</p>
  <p>Here some code to illustrate what I want to do:</p>
  <pre><code>const onClickMailtoHandler = () =&gt; {
      //TODO: open default e-mail client e.g. via mailto link with text from (state) variable as body
  }
  
  &lt;Button onClick={onClickMailtoHandler}&gt;Send E-Mail&lt;/Button&gt;
  </code></pre>
  <p>Here is how to do a mailto link in HTML:</p>
  <pre><code>&lt;a href=&quot;mailto:max.mustermann@example.com?body=My custom mail body&quot;&gt;E-Mail to Max Mustermann&lt;/a&gt;
  </code></pre>