title: using state in dangerouslySetInnerHTML react component
body: <p>I have a string about html builded by react.
  I'm trying to implement render this html string through react, and looking for solution to manage state.</p>
  <p>below is simple example.</p>
  <pre><code>const App = (props) =&gt; {
    let code = '&lt;b&gt;Will This Work?&lt;/b&gt;';
  
    return (
      &lt;div dangerouslySetInnerHTML={ {__html: code} }&gt;
      &lt;/div&gt;
    );
  }
  </code></pre>
  <p>I want to manage the state of component rendered with <code>dangerouslySetInnerHTML</code> option.</p>
  <p>Can i get any ideas about how approach?</p>