title: How to render a react component from a string name
body: <p>I want to dynamically render a react component from its string-name.
  Here is what I have done, but it does not work. Can this be done ? An example would really help.</p>
  
  <p>string_name is the name of the component.</p>
  
  <pre><code>var MyComponent = React.createElement(window[string_name], {});
  return (
        &lt;div className="wrapper"&gt;
            &lt;div&gt;Hello World&lt;/div&gt;
            &lt;MyComponent/&gt;
        &lt;/div&gt;
      )
  </code></pre>