title: Dynamically choose class from string - "MyClassName" -> MyClassName
body: <p>I use babel.js traspiler to write ES6 code.</p>
  
  <p>I have a string containing class name. I want a class that I can instantiate. How?</p>
  
  <p>I tried:</p>
  
  <pre><code>eval("MyClassName") -&gt; :(
  window["MyClassName"] -&gt; :(
  </code></pre>
  
  <p>Any ideas?</p>