|
@ -94,7 +94,7 @@ It's as simple as adding a `ref` attribute to anything returned from `render` by |
|
|
|
|
|
|
|
|
```html |
|
|
```html |
|
|
render: function() { |
|
|
render: function() { |
|
|
return <TextInput ref={(c) => this._input = c} } />; |
|
|
return <TextInput ref={(c) => this._input = c} />; |
|
|
}, |
|
|
}, |
|
|
componentDidMount: function() { |
|
|
componentDidMount: function() { |
|
|
this._input.focus(); |
|
|
this._input.focus(); |
|
|