title: Are Lambda in JSX Attributes an anti-pattern?
body: <p>I started using a new linter today (tslint-react) and it is giving me the following warning:</p>
  
  <p>"Lambdas are forbidden in JSX attributes due to their rendering performance impact"</p>
  
  <p>I get that this causes the a new function to be created with each render. And that it could trigger unneeded re-renders because the child component will think it's props have changed.</p>
  
  <p>But my question is this, how else can one pass parameters to an event handler inside a loop:</p>
  
  <pre><code>customers.map( c =&gt; &lt;Btn onClick={ () =&gt; this.deleteCust(c.id) } /&gt; );
  </code></pre>