title: 'ActiveXObject' is not defined no-undef [React-Js]
body: <p>I am trying to parse XML Response un ReactJs.</p>
  
  <pre><code>var parser, xmlDoc;
  var text = "&lt;bookstore&gt;&lt;book&gt;" +
  "&lt;title&gt;Everyday Italian&lt;/title&gt;" +
  "&lt;author&gt;Giada De Laurentiis&lt;/author&gt;" +
  "&lt;year&gt;2005&lt;/year&gt;" +
  "&lt;/book&gt;&lt;/bookstore&gt;";
  
  if (window.DOMParser) {
      // code for modern browsers
      parser = new DOMParser();
      xmlDoc = parser.parseFromString(text,"text/xml");
    } else {
      // code for old IE browsers
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
      xmlDoc.async = false;
      xmlDoc.loadXML(text);
    }
  </code></pre>
  
  <p>Above code works fine in React if i remove <em>else</em>  part , but project requirement is to support >=IE7 browsers using ReactJs. Also above code is working good if i embed JS into simple HTML page. Please let me know if i am missing something.</p>