From 5f55b8aaf79fcea965f89e8b8e53b2ea28644d7e Mon Sep 17 00:00:00 2001 From: Arni Fannar Date: Wed, 9 Nov 2016 22:45:21 +0000 Subject: [PATCH] Update refs-and-the-dom.md (#8250) Since a lot of projects use [airbnb eslint config](https://www.npmjs.com/package/eslint-config-airbnb) where [this rule](http://eslint.org/docs/rules/no-return-assign) is enabled (and its a good rule) some people might get confused when they are trying this out in their project. (cherry picked from commit f4059e5e5b426224721b19f03fecea94335a5d3b) --- docs/docs/refs-and-the-dom.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/refs-and-the-dom.md b/docs/docs/refs-and-the-dom.md index 6ad4164f90..d7f9c4e39f 100644 --- a/docs/docs/refs-and-the-dom.md +++ b/docs/docs/refs-and-the-dom.md @@ -38,7 +38,7 @@ class CustomTextInput extends React.Component {
this.textInput = input} /> + ref={(input) => { this.textInput = input; }} /> this.textInput = input} /> + ref={(input) => { this.textInput = input; }} /> ); } } @@ -86,7 +86,7 @@ function CustomTextInput(props) {
textInput = input} /> + ref={(input) => { textInput = input; }} />