Add curlies around ref function body

The example we have here uses an implicit return, which is forbidden
when assigning. This triggers the no-return-assign rule.

Fixes #980
This commit is contained in:
Joe Lencioni
2016-08-02 09:09:12 -07:00
parent 9ffadff1fd
commit 52a2da4182

View File

@@ -337,7 +337,7 @@
// good
<Foo
ref={(ref) => this.myRef = ref}
ref={ref => { this.myRef = ref; }}
/>
```