title: Computer-Vision with React
body: <p>I'm trying to find a client-side computer-vision library that plays nicely with React. I've tried tracking.js and js-objectdetect but I can't import them into a standard React component without major efforts that are beyond my skills. </p>
  
  <p>The problem with both these awesome libraries is that they are written as IIFE with no export statements e.g.</p>
  
  <p><code>(function(){...})()</code></p>
  
  <p>They are supposed to be imported as <code>&lt;script src = 'etc'&gt;</code> so I can't seem to just <code>import</code> them as normal and follow the API without getting </p>
  
  <p><code>TypeError: foo.bah is not a constructor</code></p>
  
  <p>I tried adding my own export statements but a can of worms exploded out of it!</p>
  
  <p>Can anyone suggest a better approach?</p>