title: Reactjs possible to change onclick function name like changing props
body: <p>Possible to change onclick function like changing props, like changing <code>'props message'</code> to <code>'new message'</code> ?</p>
  
  <p>For example: </p>
  
  <pre><code>var SmallMessageBox = React.createClass({
  
    getDefaultProps: function() {
      return {
        message: 'props message',
        onClick: 'this.eventHandler_Two'
      }
    },
  
    eventHandler_One: function(){
      console.log('event1');
    },
  
    eventHandler_Two: function(){
      console.log('event2');
    },
  
    render: function(){
  
      return (
        &lt;div&gt;
          &lt;small&gt;{this.props.message}&lt;/small&gt;
          &lt;button onClick={this.eventHandler_One}&gt;button&lt;/button&gt;
        &lt;/div&gt;  
      );
    }
  });
  
  React.render(
    &lt;SmallMessageBox message="new message" onClick="new onClick function for event2" /&gt;, document.getElementById('react-container'),
    function(){
      console.log('after render');
    }
  );
  </code></pre>