title: React - return component onClick event
body: <p>Can I create a new component on a <code>onClick</code>-event in <code>reactjs</code>.
  I've tried this:</p>
  
  <p>My component where the click event occurs:</p>
  
  <pre><code>...
  &lt;li onClick={this.edit.bind(this)}&gt;&lt;span className="glyphicon glyphicon-pencil"&gt;&lt;/span&gt; Edit entry&lt;/li&gt;
  ...
  </code></pre>
  
  <p>This is the <code>edit</code> method:</p>
  
  <pre><code> edit(event) {
          return &lt;CreateFreightEntryModal key={"freightEditModal" + this.state.freight.ID} openOnStartup="true" modalId={"freightEditModal" + this.state.freight.ID} /&gt;
      }
  </code></pre>
  
  <p>No error is thrown, but the component is not being created. Doing I something wrong or is this not really recommended?</p>