mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
DOCS - typo in ref callback example
deleted extra ending curly brace in arrow function
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