Skip to content

Commit 643fe9b

Browse files
Ronan Spoorronanmathew
Ronan Spoor
authored andcommitted
[Fix] react/jsx-no-bind Add props to example
1 parent b7665b7 commit 643fe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/jsx-no-bind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ Unfortunately [React ES6 classes](https://facebook.github.io/react/blog/2015/01/
121121

122122
```jsx
123123
class Foo extends React.Component {
124-
constructor() {
125-
super();
124+
constructor(...args) {
125+
super(...args);
126126
this._onClick = this._onClick.bind(this);
127127
}
128128
render() {

0 commit comments

Comments
 (0)