title: mapStateToProps is undefined though connect imported syntax error
body: <p>I have this error and can't really understand what could go wrong when {connect} imported and const mapStateToProps declared:</p>
  
  <blockquote>
    <p>./src/Movies.js Syntax error: C:/projects/library/src/Movies.js:
    Unexpected token (6:8)</p>
    
    <blockquote>
      <p>6 |   const mapStateToProps = (state) => ({</p>
    </blockquote>
  </blockquote>
  
  <pre><code>import React, { Component } from "react"; 
  import { connect } from "react-redux"; 
  import MovieItem from "./MovieItem";
  
  class Movies extends Component {   
    const mapStateToProps = (state) =&gt; ({
      movies: state.movies;   
    });
  
    render() {
      let movieItems = this.props.movies.map(movie =&gt; {
        return &lt;MovieItem movie={movie} /&gt;;
      });
      return &lt;div className="Movies"&gt;{movieItems}&lt;/div&gt;;   
    } 
  }
  
  export default connect(mapStateToProps, null)(Movies);
  </code></pre>