title: Pass argument to reactjs click handler
body: <p>I have a question about passing arguments to React click handlers. 
  I have the following code, but for some reason the node argument is not passed to the toggle function. Shouldn't it? It's defined this way because it's a recursive component.</p>
  
  <pre><code>var Element = React.createClass({
  
      toggle: function(e,node){
  
      },
  
      render: function(){
  
          var nodes = this.props.children.map(function(n){
  
                  return &lt;Element node={n} text={n.text} children={n.children}  /&gt;
  
          });
  
          return (
                 &lt;span onClick={this.toggle.bind(this,this.props.node)}&gt;{this.props.text}&lt;/span&gt;
  
          );
      }
  
  });
  </code></pre>