Skip to content

Commit dcfbf80

Browse files
sophiebitszpao
authored andcommitted
Merge pull request facebook#4703 from spicyj/rarr
Clarify use of arrow functions (cherry picked from commit d4f3893)
1 parent 32663aa commit dcfbf80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/08.1-more-about-refs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ It's as simple as:
9090

9191
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).
9292

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:
9494

9595
```html
9696
render: function() {

0 commit comments

Comments
 (0)