![it-образование](https://habrastorage.org/r/w120/files/be4/1e5/5bb/be41e55bb5aa44038152e270ab52a870.jpg)
IT-образование
- 3 ответа
- 0 вопросов
3
Вклад в тег
autoFocus={true}
componentDidMount() {
this.refs.searchInput.value = this.refs.searchInput.value
},
<input type="text"
ref="searchInput"
autoFocus={true}
value={this.props.searchTerm}
> </input>