title: Attempted import error: 'getMovies' is not exported from 'C:/Users/hp/vidly/src/fakeGenreService'
body: <p>I'm trying to create a very basic react app, i have one file name 'fakeMovieService.js'. Importing that file in movies.jsx which are in same folder.
  There is a function in that getmovies() which basically gets all the value of movie stored in a variable and i'm trying to print that in  table created in movies.jsx.</p>
  <p>But it shows an import error.
  code in fakemovieService:-</p>
  <pre><code>    const movies = [
        {
          _id: &quot;5b21ca3eeb7f6fbccd471815&quot;,
          title: &quot;Terminator&quot;,
          genre: { _id: &quot;5b21ca3eeb7f6fbccd471818&quot;, name: &quot;Action&quot; },
      numberInStock: 6,
      dailyRentalRate: 2.5,
      publishDate: &quot;2018-01-03T19:04:28.809Z&quot;
    },
    {
      _id: &quot;5b21ca3eeb7f6fbccd471816&quot;,
      title: &quot;Die Hard&quot;,
      genre: { _id: &quot;5b21ca3eeb7f6fbccd471818&quot;, name: &quot;Action&quot; },
      numberInStock: 5,
      dailyRentalRate: 2.5
    },
    {
      _id: &quot;5b21ca3eeb7f6fbccd471817&quot;,
      title: &quot;Get Out&quot;,
      genre: { _id: &quot;5b21ca3eeb7f6fbccd471820&quot;, name: &quot;Thriller&quot; },
      numberInStock: 8,
      dailyRentalRate: 3.5
    },
     {
      _id: &quot;5b21ca3eeb7f6fbccd471821&quot;,
      title: &quot;The Avengers&quot;,
      genre: { _id: &quot;5b21ca3eeb7f6fbccd471818&quot;, name: &quot;Action&quot; },
      numberInStock: 7,
      dailyRentalRate: 3.5
    }
  ];
  
  export function getMovies() {
    return movies;
  }
  
   
  Code in movies.jsx
  class Movies extends Component {
      state = {
          movies: getMovies()
        };
      render() { 
          return &lt;table className=&quot;table&quot;&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Title&lt;/th&gt;
                      &lt;th&gt;Genre&lt;/th&gt;
                      &lt;th&gt;Stock&lt;/th&gt;
                      &lt;th&gt;Rate&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;body&gt;
                  {
                      this.state.movies.map(movie =&gt;(
                  &lt;tr&gt;
                      &lt;td&gt;{movie.title}&lt;/td&gt;
                      &lt;td&gt;{ movie.genre.name  }&lt;/td&gt;
                      &lt;td&gt;{movie.numberInStorck }&lt;/td&gt;
                      &lt;td&gt;{ movie.dailyRentalRate  }&lt;/td&gt;
                  &lt;/tr&gt;
                      ))}
              &lt;/body&gt;
          &lt;/table&gt;
      }
  }
  </code></pre>