@samitouri / QOS-React / commits / d15938cd92

Clarify use of arrow functions

Per https://github.com/facebook/react/commit/1db20999f0336cfacc6af5ee6f5a77803d74381b#commitcomment-12865588.

Ben Alpert committed Aug 24, 2015 at 17:21 UTC d15938cd9292242d87f751a34ca50c78fbf8c629
1 file changed +1 -1
docs/docs/08.1-more-about-refs.md
+1 -1
@@ -90,7 +90,7 @@ It's as simple as:
90
91 The `ref` attribute can be a callback function instead of a name. This callback will be executed immediately after the component is mounted. The referenced component will be passed in as a parameter, and the callback function may use the component immediately, or save the reference for future use (or both).
92
93 -It's as simple as assigning a `ref` attribute to anything returned from `render` such as:
93 +It's as simple as adding a `ref` attribute to anything returned from `render` by using an ES6 arrow function:
94
95 ```html
96 render: function() {