From 62c86a65a9c0a49d739e58cc1c27694b0e48a189 Mon Sep 17 00:00:00 2001 From: Omid Hezaveh Date: Thu, 2 Feb 2017 15:33:12 +0200 Subject: [PATCH] Explain arbitrariness of ref name in callback (#8913) * Explain arbitrariness of ref name in callback The sample code was confusing because it's not clear that "textInput" in this.textInput is an arbitrary name for the ref. * Tweak wording --- docs/refs-and-the-dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/refs-and-the-dom.md b/docs/refs-and-the-dom.md index 50e800e2..6351d71b 100644 --- a/docs/refs-and-the-dom.md +++ b/docs/refs-and-the-dom.md @@ -33,7 +33,7 @@ class CustomTextInput extends React.Component { render() { // Use the `ref` callback to store a reference to the text input DOM - // element in this.textInput. + // element in an instance field (for example, this.textInput). return (