Skip to content

Commit 5de239b

Browse files
maurer2ljharb
andauthored
Update docs/rules/sort-comp.md
Co-authored-by: Jordan Harband <[email protected]>
1 parent c191abd commit 5de239b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/rules/sort-comp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class Hello extends React.Component {
151151
render() {
152152
return <div>Hello</div>;
153153
}
154-
onClick = () => {}
154+
onClick = this.onClick.bind(this);
155+
onClick() {}
155156
}
156157
```
157158

0 commit comments

Comments
 (0)