title: Using NPM for dependency instead of link/script tags
body: <p>So I'm using this library </p>
  
  <p><a href="https://github.com/FormidableLabs/component-playground" rel="nofollow">Component Playground</a></p>
  
  <p>Which is a react component that lets the user do live editing of react components and leverages code mirror.</p>
  
  <p>It makes me setup code mirror by including that library with tags - </p>
  
  <pre><code>&lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/codemirror.min.css"/&gt;
  &lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/theme/monokai.min.css"/&gt;
  
  &lt;script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/codemirror.min.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/mode/javascript/javascript.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However, I'd like to use npm for this, maybe </p>
  
  <p><code>
  https://github.com/JedWatson/react-codemirror
  </code></p>
  
  <p>but when I do, I get that <code>CodeMirror is not defined</code></p>
  
  <p>Is there a way for me to use npm to get the code mirror dependency? </p>