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
Omid Hezaveh committed
Feb 2, 2017 at 15:33 UTC
79be3543ddf9ea7a12a40411e93daecada108645
1 file changed
+1
-1
docs/docs/refs-and-the-dom.md
+1
-1
@@ -33,7 +33,7 @@ class CustomTextInput extends React.Component {
33
34
render() {
35
// Use the `ref` callback to store a reference to the text input DOM
36
- // element in this.textInput.
36
+ // element in an instance field (for example, this.textInput).
37
return (
38
<div>
39
<input