How to dispatch OnChange value ? e is not defined error React/redux
<p>I'm building a filter component based on a movie list. I'm almost there. I've set up my action, reducer and components. Looking at my React/redux dev tools everything seems to be ok. however I can't dispatch my action properly. </p>

<p>Here is my component event :</p>

<pre><code>&lt;div&gt;
  Year:
  &lt;select
    defaultValue={selectedYear}
    onChange={e =&gt; onChangeYear(e.target.value)}
  &gt;
    &lt;option value="all" &gt;All&lt;/option&gt;
    {years.map((y, i) =&gt;
      &lt;option key={i} value={y}&gt;{y}&lt;/option&gt;
    )}
  &lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>and here is my dispatcher :</p>

<pre><code>const mapDispachToProps = (dispatch) =&gt; {
    return {
  onChangeYear: () =&gt; {dispatch (onYearChange(e.target.value));
        },
    };
};
</code></pre>

<p><code>onYearChange</code> is well imported and well defined in my action components.
how can I pass <code>e.target.value</code> in my dispatcher without any error ?</p>

<p>Thanks.</p>