title: How to parse a string with variables into a react component?
body: <p>I have  a string with a variable inside: </p>
  
  <pre><code>var template = '&lt;div&gt;Hello {username}&lt;/div&gt;';
  </code></pre>
  
  <p>The username is set by the state, how to parse this string and turn it into a react component?</p>