title: Why I cant get index from map to function?
body: <p>Click handler:</p>
  <pre><code> const deleteHandler = (e: React.MouseEvent&lt;HTMLDivElement&gt;, i: number) =&gt; {
          e.preventDefault()
          dispatch(deleteOffer(i)) //undefined
      }
  </code></pre>
  <p>Usage into React Component</p>
  <pre><code>  {offers.map((o, i) =&gt; (
                  &lt;div key={i} className={classes['OffersList__item']}&gt;
                      &lt;UIButton type={'primary'} onClick={(e:React.MouseEvent&lt;HTMLDivElement&gt;, i: number) =&gt; deleteHandler(e, i)}&gt;
                          &lt;FaTrash/&gt;
                      &lt;/UIButton&gt;
                  &lt;/div&gt;
              ))}
  </code></pre>
  <p>Why am I getting 'undefined' ?</p>