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; }} />