title: How to convert an HTML string to virtual DOM in React?
body: <p>I'd like to be able to take a raw HTML string that I insert into a React component via <code>dangerouslySetInnerHTML</code> and have it incorporated into the virtual DOM. Is there any way to do this?</p>
  
  <p>For example, if I have:</p>
  
  <pre><code>&lt;Component dangerouslySetInnerHTML={{__html: htmlFromServer}}&gt;&lt;/Component&gt;
  </code></pre>
  
  <p>how can I get <code>htmlFromServer</code> into the virtual DOM? Thanks!</p>