From 10733f084a7c0202d0835f7f198b54c8ea69aa37 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. --- docs/refs-and-the-dom.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/refs-and-the-dom.md b/docs/refs-and-the-dom.md index 6ad4164f..d7f9c4e3 100644 --- a/docs/refs-and-the-dom.md +++ b/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; }} />