Skip to content

Commit

Permalink
[Fix] react/jsx-no-bind Add ...args in example so props is availabl…
Browse files Browse the repository at this point in the history
…e in the constructor.
  • Loading branch information
Ronan Spoor authored and ronanmathew committed Mar 9, 2018
1 parent b7665b7 commit 8ef0530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/jsx-no-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ Unfortunately [React ES6 classes](https://facebook.github.io/react/blog/2015/01/

```jsx
class Foo extends React.Component {
constructor() {
super();
constructor(...args) {
super(...args);
this._onClick = this._onClick.bind(this);
}
render() {
Expand Down

0 comments on commit 8ef0530

Please sign in to comment.