title: ReferenceError: React is not defined
body: <p>After surfing the forums , I reconfirmed the usage of proper imports as mentioned below:</p>
  
  <pre><code>import React from 'react';   
  import ReactDOM from 'react-dom';
  </code></pre>
  
  <p>Also tried removing the following lines from <code>webpack.config.js</code>:</p>
  
  <pre><code>externals: [           
    {  react: 'React',},         
  ],
  </code></pre>
  
  <p>But still am getting the following error, while running jest testcases</p>
  
  <blockquote>
    <p>ReferenceError: React is not defined</p>
  </blockquote>