How to use onClick event on react Link component? : <p>I am using the Link component from the reactjs router and I cannot get the onClickevent working. This is the code:</p>

<pre><code>&lt;Link to={this.props.myroute} onClick='hello()'&gt;Here&lt;/Link&gt;
</code></pre>

<p>Is this the way to do it or another way?</p>
