Answer the question
In order to leave comments, you need to log in
How can I make defaultValue work when state changes?
<select onChange={this.props.changesource}>
<option defaultValue>Выбрать источник</option>
<option value="abc-news">Abc-News</option>
<option value="cbs-news">CBS News</option>
<option value="daily-mail">Daily Mail</option>
<option value="national-geographic">National Geographic</option>
<option value="newsweek">Newsweek</option>
</select>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question