title: import module from a sub folder in react js
body: <p>Hello i am just learning ReactJs, I am trying to import a module from a sub folder in react, here is my folder structure</p>
  
  <pre><code>-src
  ---components
  -----layout
  -------Header.js
  -------Navigation.js
  -----fakeAuth.js
  </code></pre>
  
  <p>From the Header.js module, i am trying to import the fakeAuth from the parent (component), but it seems it can't call module or am i just missing something?</p>
  
  <p>I already tried the following</p>
  
  <pre><code>import fakeAuth from './fakeAuth'
  import fakeAuth from '././fakeAuth'
  import fakeAuth from '../../fakeAuth'
  </code></pre>
  
  <p>Still no luck, i know this will be easy for some. Thanks</p>
  
  <p>here i my fakeAuth.js, which is from the react-router-dom tutorial.</p>
  
  <pre><code>module.exports  = {
      isAuthenticated: false,
      authenticate(cb) {
        this.isAuthenticated = true;
        setTimeout(cb, 100); // fake async
      },
      signout(cb) {
        this.isAuthenticated = false;
        setTimeout(cb, 100);
      }
    };
  </code></pre>