title: Top level javascript imports - Redux
body: <p>I'm trying to learn redux and I've run into an error. I only have two files, an index.html file and a main.js file, there are links to the jquery and redux cdns in the html file. I've only gotten to 2.3 in the redux tutorial(<a href="http://redux.js.org/docs/basics/Store.html">http://redux.js.org/docs/basics/Store.html</a>) and am stuck. I have </p>
  
  <pre><code>import {createStore} from 'redux';
  </code></pre>
  
  <p>at the top of my main.js file, but when I load the application, I get an error pointing to line above saying </p>
  
  <p><code>SyntaxError: import declarations may only appear at top level</code></p>
  
  <p>What is a 'top level import declaration'?</p>
  
  <p>Here is a gist to my code if that helps. <a href="https://gist.github.com/austincarvey/6e6c8fdc2640b0f9bbfb">https://gist.github.com/austincarvey/6e6c8fdc2640b0f9bbfb</a></p>