title: reactjs wrapper for Twilio Browser Call
body: <p>I am trying to build a reactjs wrapper for browser call feature using Twilio. I am getting the capability token by calling java rest API. Installed twilio using npm. In my react component i imported the twilio and trying to set up the Device using the token. But getting an error 'Uncaught TypeError: Cannot read property 'setup' of undefined'. Can anyone suggest me how can I get rid of the error? Please suggest me a good approach to achieve the functionality. Thank you.</p>
  
  <pre><code>import twilio from 'twilio';
  setup(){
          var token = //getting token here by calling a rest api;
          twilio.Device.setup(token);
    }
  </code></pre>