title: How to include a frontend script when using create-react-app
body: <p>I'm trying to add the jquery module select2 to my react project which has been created by create-react-app.</p>
  
  <p>I'm running </p>
  
  <pre><code>npm install --save select2
  </code></pre>
  
  <p>and can see that the dependency is correctly added to my package.json.</p>
  
  <p>Then I add this to a global javascript-file outside my react-code: </p>
  
  <pre><code>$(function () {
      $('select').select2();
  }); 
  </code></pre>
  
  <p>This does not work as the select2 script is not included.</p>
  
  <p>What am I doing wrong? Should I somehow run the jquery code inside my react code? Should I do something specific to include the select2 library?</p>
  
  <p>This might be a very basic problem, but I'm confused how scripts are actually included when running under the framework of create-react-app. </p>