How to pass event in onClick in ReactJS
<p>I am trying to to call "preventDefault" in some manner on a custom component without success.  Here are my attempts.  The first attempt with "e" passes the element reference and not the actual event.  The second method passes the event, but the prevent default method does not prevent anything.  What is the best way to do this?</p>

<pre><code>&lt;MyComponent header= {
    &lt;div onClick={e =&gt; { e.preventDefault(); myFunction.bind(this, event) }}&gt;
       Header
    &lt;/div&gt; 
} /&gt;

function myFunction(event) {
   event.preventDefault();
}
</code></pre>