title: Import external script into React component
body: <p>I am converting a template into react components for my site. However, the template are mostly in jquery. The external javascripts are not binding well with my component and I have to bind the function with <code>componentDidMount()</code>.</p>
  
  <pre><code>componentDidMount(){
    $(".b-upper-title").slabText({
        // Don't slabtext the headers if the viewport is under 380px
        "viewportBreakpoint":380
    });
  }
  </code></pre>
  
  <p>However, <code>slabText()</code> is not working since it is dependent on <code>&lt;script src="styles/plugins/slabText/js/jquery.slabtext.min.js"&gt;&lt;/script&gt;</code>. I need to import this script into the component in order to call the function. Any idea how to perform the task? </p>