From dcfbf801e44e564539c265e9d0ff2f30926f078f Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Tue, 25 Aug 2015 11:38:13 -0700 Subject: [PATCH] Merge pull request #4703 from spicyj/rarr Clarify use of arrow functions (cherry picked from commit d4f38933f2ce5187ae7beae02146c69624b8cd36) --- docs/docs/08.1-more-about-refs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/08.1-more-about-refs.md b/docs/docs/08.1-more-about-refs.md index 344bf3be6a..8f1c8039dd 100644 --- a/docs/docs/08.1-more-about-refs.md +++ b/docs/docs/08.1-more-about-refs.md @@ -90,7 +90,7 @@ It's as simple as: 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). -It's as simple as assigning a `ref` attribute to anything returned from `render` such as: +It's as simple as adding a `ref` attribute to anything returned from `render` by using an ES6 arrow function: ```html render: function() {