Convert react JSX object to HTML : <p>I have a react application that generates HTML output based on some configuration. Like this:</p>

<pre><code>export const getHtml = (config) =&gt; {
  const {classes, children} = config
  return (&lt;div className={classes.join(' ')}&gt;{children}&lt;/div&gt;);
}
</code></pre>

<p>Inside the react app I can easily display the resulting DOM objects, but I want to save the HTML code to DB, to display it on a different page (without loading react/parsing the config again)</p>

<p>I could not find a way to convert the JSX object to plain HTML...</p>
