title: React, setting onClick in html via dangerouslySetInnerHTML
body: <p>I have a txt component that renders via dangerouslySetInnerHTML</p>
  
  <p>It has this line:</p>
  
  <pre><code>lines[i] = lines[i].replace(capoRegex, "&lt;div class='capo' onClick={this.toggleTranspose()}&gt;$1&lt;/div&gt;");
  </code></pre>
  
  <p>But when I click the element, I get this error:</p>
  
  <pre><code>TypeError: this.toggleTranspose is not a function
  </code></pre>
  
  <p>How do I call my component's function from dangerouslySetInnerHTML ? </p>