How could a component pass itself as an argument in React?
<p>I'm not even sure if this is do-able, but let's say i have this :</p>

<pre><code>&lt;p id='1' disabled={this.anyfunction(???)}&gt;Hello wurld&lt;/p&gt;
</code></pre>

<p>and that would be my function</p>

<pre><code>anyfuction:function(component){
    console.log(component.id)
}
</code></pre>

<p>What parameter should i pass to the function ? <code>this</code> wont work, i've tried to <code>bind(this)</code> but the problem is that the function isnt called ( can't do something like <code>myfunction().bind(this)</code> eventhough <code>myfunction.bind(this)</code> would work, it's not being called when the HTML renders).</p>

<p>Any ideas ?</p>