title: what is the difference between import App from '../components/App'; and var App = require('../components/App');?
body: <p>What is the difference between:</p>
  
  <pre><code>import App from '../components/App';
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var App = require('../components/App');
  </code></pre>
  
  <p>both are used to get components but it is not solving my query asked here:
  <a href="https://stackoverflow.com/questions/51803969/uncaught-error-minified-react-error-130">Uncaught Error: Minified React error #130</a></p>