palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.
Apache License 2.0
749 stars 76 forks source link

jsx-no-lambda and passing args in event handlers #96

Closed StokeMasterJack closed 4 years ago

StokeMasterJack commented 7 years ago

If one never uses lambdas in a jsx arg, how would one pass args to an event handler? For example:

<Foo onClick={ (event) => this.foo(23) }/>

adidahiya commented 4 years ago

Closing due to deprecation, see #210