Skip to content

Commit

Permalink
[Docs] update no-string-refs example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 4, 2016
1 parent 8b567a6 commit 1ab2eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-string-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var Hello = React.createClass({
// ...do something with component
},
render() {
return <div ref={c => this.hello = c}>Hello, world.</div>;
return <div ref={(c) => { this.hello = c; }}>Hello, world.</div>;
}
});
```

0 comments on commit 1ab2eec

Please sign in to comment.