title: How to add external JavaScript files in ReactJS
body: <p>I would like to include jquery.min.js and add a external JavaScript file and call a JavaScript function inside an existing react JS file.</p>
  <p>I did below but it is not working</p>
  <pre><code>const VoCaaSComponentbtn = (
          &lt;React.Fragment&gt;
               &lt;div&gt;
              &lt;script type=&quot;text/javascript&quot;src=&quot;https:xxxx/jquery-3.3.1.min.js&quot;&gt;&lt;/script&gt; 
              &lt;script type=&quot;text/javascript&quot;src=&quot;https:xxx/microsurvey&quot; defer=&quot;defer&quot;&gt;&lt;/script&gt;
              &lt;div id=&quot;microsurvey&quot; module=&quot;true&quot; tab-info=&quot;tabname&quot;&gt;&lt;/div&gt;
              &lt;script type=&quot;text/javascript&quot;&gt; voc_getsurvey(); &lt;/script&gt;                  
              &lt;/div&gt;
          &lt;/React.Fragment&gt;
      );
  </code></pre>