title: how to import component in index.js in react.js
body: <p>I have created component folder in src folder and tried to write simple greeting program for that I have created 3 files:</p>
  
  <ol>
  <li>GreetUser.jsx </li>
  <li>index.jsx</li>
  <li>index.html</li>
  </ol>
  
  <p>while compiling it is showing that could not find required index.js file.</p>
  
  <p>I have written 3 files in Component folder and have imported GreetingUser module in the index.jsx file and while compiling it is showing that could not find required index.js file.</p>
  
  <p><strong>1.GreetingUser.jsx</strong></p>
  
  <pre><code>import React , {component}  from 'react';
  class GreetUser extends component
  {
      render()
      {
          return &lt;h1&gt;Greetings from suraj!!!!&lt;/h1&gt;;
      }
  }
  export default GreetUser;
  </code></pre>
  
  <p><strong>2.index.jsx</strong></p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
  import * as serviceWorker from './serviceWorker';
  
  import GreetUser from './Component/GreetUser.jsx';
  
  
  ReactDOM.render(&lt;GreetUser/&gt;,document.getElementById('aaa'));
  
  
  serviceWorker.unregister();
  </code></pre>
  
  <blockquote>
    <p>Could not find a required file.
      Name: index.js</p>
  </blockquote>