mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4869 from arush/patch-1
DOCS - typo in ref callback example
This commit is contained in:
@@ -94,7 +94,7 @@ It's as simple as adding a `ref` attribute to anything returned from `render` by
|
||||
|
||||
```html
|
||||
render: function() {
|
||||
return <TextInput ref={(c) => this._input = c} } />;
|
||||
return <TextInput ref={(c) => this._input = c} />;
|
||||
},
|
||||
componentDidMount: function() {
|
||||
this._input.focus();
|
||||
|
||||
Reference in New Issue
Block a user