title: ReactJS external library
body: <p>Hi I am quite new to reactjs but I started to understand few things. But this one giving me a headache, I have a small reactjs component that will be added in an existing site. The problem is inside my component I wanted to use a function in a JS file that is declared masterpage of the site. The name of the function I want to access is "SPClientPeoplePicker_InitStandaloneControlWrapper", so whenever I build my component I get the following error :</p>
  
  <blockquote>
    <p>'SPClientPeoplePicker_InitStandaloneControlWrapper' is not defined  no-undef</p>
  </blockquote>
  
  <p>I tried using windom.SPClientPeoplePicker_InitStandaloneControlWrapper but the problem is in window "SPClientPeoplePicker_InitStandaloneControlWrapper" is giving me a different function. It would be nice if that library can be scoped inside my component</p>
  
  <p>I tried calling library using import but it didnt work</p>
  
  <pre><code>import clientforms from "https://standardsSite.com/_layouts/15/clienttemplates.js";
  </code></pre>